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, the last thing we want to adjust on medium screens is going to be the promo area. If I come in here and resize the browser, we'll see that having the text show up on the right-hand side of the images leaves very little room for the text, so what we're going to do is rearrange the text inside up here to show up underneath of the images. Now to do that, let's come back to our text editor. After the navigation rules inside of our screen_layout_ medium.css file, let's start by targeting the promo_container. So let's start with the .promo_container, put in our brackets.
We're going to set a padding of 0 on the top, 20 on the right, 15 on the bottom, and 20 on the left. Let's come in here and copy the promo_container name. Let's hit a few returns. Let's paste promo_container .promo, beginning and ending bracket. We're going to set background-position here to 0 on the x and 0 on the y. Set another rule, .promo_container .promo .content.
Now we're going to target the content divs inside of each one of the individual promos. In here we're going to set padding. We're going to set 70 on the top, 30 on the right, 0 on the bottom, and 0 on the left. So what's going to happen here is the text is going to push away from the top 70 pixels, but the left is going to be set back to 0 so the text will now align to the left-hand side of the promo area. Now there's one last rule I want to create, and that's going to be for the body tag.
So let's add body, beginning and ending bracket, and what I want to do here is take away the background image. Since we can't actually see the background image on a medium screen, I don't want the users to download that extra graphic. So let's come in here and let's come down to background-image and let's add none. Let's choose File > Save. Let's come back out to our browser. Let's hit Reload, and now you see that the text positioned itself 70 pixels down from the top and aligns on the left-hand side to give us the typography coming underneath of the images instead of floating over to the right-hand side.
Now we have all of these CSS rules in place for the medium screens. Next we're going to target the small screens.
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.