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 to create our HTML containers, we're going to open up the index.html file in the myWebsite folder up in your chosen text editor. Now inside here, we have just a standard HTML document. We have the declaration here at the top. We have our HTML tag, which contains everything inside of the document. Then we have the heading area and then the body area. So for right now, we're going to focus on inside of the body area. Select this comment here that says "content goes here," delete that, and now let's create the containers for our layout.
We're going to start by creating a div tag. We're going to set a class="page." Let's end that tag and then end the div. Let's split this open. This is going to be the main page container. Now inside here, we're going to create the individual containers to hold the content. We're going to start by creating a header element. This is an HTML5 element. Let's hit a few returns. Let's add an article element. That's another HTML5 element. Let's hit a few returns.
Next, we're going to create a div that's going to be our promo container. So type div. Let's set a class of promo_ container and the tag and the div. A few more returns. Another HTML5 element called nav. Let's end that tag. And then finally, one more element called footer. So right now, the HTML5 elements here are header, article, nav, and footer.
And then here we have the standard div, with the class of promo_container. Now that we have our outermost containers created, next we'll create the individual containers for each promo inside of the promo_container div.
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.