Start learning with our library of video tutorials taught by experts. Get started
Discover how to make your website more readable and efficient across various screen sizes and devices. Join author Chris Converse as he shares his own specialized techniques for creating a responsive site. The course takes the site from start-to-finish, from comping your ideas in Photoshop, to setting up the HTML page and containers, to styling established elements for small, medium, and large screens. In particular, Chris shows how to load images with CSS, reposition the nav bar for better viewing on mobile devices, and how to make the download time faster for small screens by providing multiple versions of your banner graphic and other images.
This course was created and produced by Chris Converse. lynda.com is honored to host this training in our library.
Hi! I'm Chris Converse, and this is a course on creating a responsive web design. I want to start by showing the final project of what we're going to be creating. We're going to be building this design that we see here in the background, and I want to point out some of the features of this responsive design. First, if I take the browser and open it up, we're going to lock the design down to 980 pixels so that the design will center in the available space on large screens. And when we bring the browser size down under 980 the design is going to start to become fluid. So we can see the columns wrapping. In the center, we can see the typography moving around. And when we get under certain break points, like right here, we're going to start shifting the design completely using CSS3 media queries.
So you'll notice here that we have a much smaller heading at the top, a smaller logo. We've even rearranged the promos to have the type show up underneath of the graphics instead of on the right-hand side. So I'll extend this and open again to look at the large screen, and down to medium. Notice we have a navigation bar here showing up under the header as well. On medium screens we actually space the navigation down a little bit. Assuming that we might be on a tablet device, we want to give users enough room to tap these with their fingers. And if we bring the design down even further under 500 pixels, we switch into a mobile screen view.
We have a much smaller heading graphic at the top, a smaller logo. We have our promos showing up as vertically stacked items instead of in columns. And also notice that we have the navigation now shifted down to be underneath all of the content. On mobile devices we want to have the content show first so that users can see the content, swipe down to the bottom with their fingers, and then tap on individual links to go further into your site. Now all of this is being achieved through CSS. So if I open this up, we can see the navigation will jump down from being from the bottom to under the header, and then up to a large screen.
Now, during the course, we're going to be examining a sketch, which is going to give us our content strategy for how we're going to change our design from large, medium, and small screens, and give us an idea on where we're going to position individual elements. And once we know all of the individual elements we have in place, we're then going to move over to Photoshop where we can take a Photoshop file, slice up individual graphics, and then build an HTML file with individual containers, and then have those individual graphics assigned into the individual HTML containers using CSS. This is going to give us two distinct advantages in this particular approach.
One, we're going to have the ability to have a CSS space layout that can have its design modified through media queries. And secondly, we can offer something called responsive delivery, meaning we can actually send less data to people on small and medium screens than on large screens. And to illustrate that point, I want to come back to Safari. So inside of Safari here, I'm in the large screen view. I'm going to right-click, bring up an inspection tool, come under Network Requests, and then hit Reload. What I want to look at in here is all of the data that's being downloaded for this large screen.
So here I can see we have the large banner graphic, and if I look at the Size column, I can see the size of every graphic that's being requested at this particular size. If we were to add all these up, we'd come up with about 180 kilobytes of data. So let's come back to Safari. I'm going to move this down to the medium screen view, come back to our diagnostic tool, hit Reload. I can see now that we're bringing in the medium-sized banner graphic. And again, if we look at the Size column here and added these up, we come up with about 73 kilobytes of data.
Come back to Safari. Let's bring this down to the smallest screen. Let's reload this. Now we can see a few extra graphics. We have a mobile link arrow to give us those mobile links dials at the bottom. We're using our small banner. And again, if we were to add up all of the sizes in that particular column, we would come up with about 32 kilobytes. So we're looking at approximately 83% less data when somebody looks at the exact same user experience on a small-screen device versus a large-screen device. So I hope this course sounds interesting to you, and if so, let's get started.
There are currently no FAQs about Creating a Responsive Web Design.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.