Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
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. Plus, learn how to replace graphics with high-resolution versions for Retina displays using CSS media queries.
This course was created and produced by Chris Converse. lynda.com is honored to host this training in our library.
Now, we're going to link in two additional CSS files, but we're going to put this inside of CSS3 media queries. So after our screen_large_ layout.css, let's hit a return. Let's add another link tag. We'll type rel="stylesheet," type="text/css". The next attribute is going to be media="". Inside of the quotes for media, we're going to type "only screen and" Then we're going to put a beginning and ending parenthesis. Inside of the parentheses, we're going to type min-width:50px, for 50 pixels.
Outside of the parentheses, we're going to type "and," another of set of parentheses, and inside of the second set of parentheses, we're going to type, max-width:500px. After the media attribute, let's hit a space. We'll type href and in here we're going to type "css/screen_layout_small.css". Outside of the attribute, forward slash, and then end the tag.
So basically, what's happening here is if the screen size is between 50 pixels, all the way up to a maximum of 500 pixels, the browser is going to use the CSS rules located in the screen_small_layout.css. Now, let's copy this entire link. Let's hit a return. Let's paste it on the next line. Let's come in here and let's select the 50 pixels here and change that to 501, so that it's one pixel larger than the largest screen for the small size.
And then for our maximum width, let's change 500 to 800. Now, if the browser's width is between 501 and 800, we're going to change the screen_layout_small to screen_layout_medium. And now that we have our small and medium screens hooked in through media queries, next we'll look at enabling Internet Explorer 7 and 8 to understand HTML5.
Find answers to the most frequently asked questions about Creating a Responsive Web Design.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.