New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

Creating a Responsive Web Design
Illustration by
Watching:

Creating double-sized graphics for high-definition screens


From:

Creating a Responsive Web Design

with Chris Converse

Video: Creating double-sized graphics for high-definition screens

Now, to begin supporting high-resolution displays, the first thing And to see the canvas settings you can come down But again, the resolution has no impact So I"m going to cancel out of here.
Expand all | Collapse all
  1. 7m 39s
    1. Previewing the final project
      4m 0s
    2. About the exercise files
      1m 15s
    3. Exploring the software you'll need to complete this course
      49s
    4. Beginning your project
      1m 35s
  2. 3m 45s
    1. What to expect with Design view in Dreamweaver
      2m 1s
    2. Accessing code for HTML and CSS in Dreamweaver
      1m 44s
  3. 9m 19s
    1. Planning your layout
      2m 47s
    2. Adding the main HTML containers
      1m 47s
    3. Adding the promo containers
      31s
    4. Adding links and the copyright
      1m 47s
    5. Adding sample content into the HTML containers
      2m 27s
  4. 8m 37s
    1. Creating and slicing multiple-sized banner images
      5m 53s
    2. Exporting content and template artwork
      2m 44s
  5. 7m 27s
    1. Linking CSS files for all screen sizes
      1m 42s
    2. Linking CSS files based on screen size with media queries
      2m 13s
    3. Enabling Internet Explorer 7 and 8 to understand HTML5
      1m 25s
    4. Setting the viewport scale
      2m 7s
  6. 9m 0s
    1. Adding the background pattern and the page container color
      3m 43s
    2. Styling the headings
      2m 17s
    3. Styling the body text and the links
      1m 15s
    4. Styling the footer
      1m 45s
  7. 9m 49s
    1. Understanding compound rules
      2m 58s
    2. Styling the promo links with a CSS sprite
      2m 48s
    3. Styling the promo text
      1m 26s
    4. Adding the promo images with CSS
      2m 37s
  8. 7m 46s
    1. Adding CSS rules for layout
      2m 8s
    2. Styling the header on large screens
      2m 34s
    3. Styling the article on large screens
      3m 4s
  9. 6m 29s
    1. Styling the navigation links
      2m 1s
    2. Styling the navigation for large screens
      1m 16s
    3. Positioning the navigation for large screens
      1m 37s
    4. Clearing the float for the promos
      1m 35s
  10. 2m 47s
    1. Adding CSS rules with inline media queries
      2m 47s
  11. 6m 0s
    1. Styling the header for medium screens
      2m 32s
    2. Styling the navigation for medium screens
      1m 10s
    3. Styling the promos for medium screens
      2m 18s
  12. 12m 7s
    1. Styling the header for small screens
      2m 27s
    2. Styling the navigation for small screens
      1m 12s
    3. Styling the navigation links for small screens
      4m 13s
    4. Styling the promos for small screens
      2m 57s
    5. Styling the footer for small screens
      1m 18s
  13. 13m 12s
    1. Additional exercise files for this chapter
      1m 4s
    2. Creating double-sized graphics for high-definition screens
      4m 45s
    3. Replacing the promo graphics with CSS media queries
      2m 42s
    4. Replacing the logo and banner graphics with CSS media queries
      4m 41s
  14. 57s
    1. Where to go from here
      57s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Creating a Responsive Web Design
1h 44m Beginner Oct 04, 2012 Updated Dec 12, 2013

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.

Topics include:
  • Understanding your software needs
  • Planning your layout
  • Adding containers, content, and links
  • Creating and slicing multiple-sized banner images in Photoshop
  • Linking to CSS files with media queries
  • Setting the viewport scale
  • Styling headings, body text, and footers
  • Styling and repositioning navigation links
  • Swapping high-resolution graphics for Retina displays
Subjects:
Design Web User Experience Responsive Design Web Design Projects Web Development
Software:
CSS
Author:
Chris Converse

Creating double-sized graphics for high-definition screens

Now, to begin supporting high-resolution displays, the first thing we need to do is create some high-resolution graphics. So inside of the exercise files for chapter 12, let's open up folder six, and let's open up the high-definition-artwork.psd file. Now, what I've done in this Photoshop file is, double the canvas size and double the size of all of the individual graphics and the slices. If you want to learn more about what you can do with the Slice tool to create high definition graphics, I have another course on the lynda.com online training library called the Slice Tool, which is inside of the Design the Web series. And to see the canvas settings you can come down to the Image menu and come down and choose Image Size.

You'll also see here that I have the resolution still set to 72 DPI. The resolution setting has no impact on the way screens display graphics, whether it's a mobile device or a computer, but the resolution does change the behavior inside of Photoshop. So I like to keep this at 72 so that if I use the text tool for example and I use ten point type, it will take roughly ten pixels on the canvas. But again, the resolution has no impact on whether graphics are high definition or not. So I"m going to cancel out of here. So to demonstrate the size of these new graphics I'm going to come over here and select the Slice tool. I'll bring up the slice options for banner large.

Here you'll see that the width is set to 1960 pixels and the height is set to 550 pixels. This is double the size of the original graphic. So as I mentioned before, resolution has no impact on the way graphics look on screen. But what does have an impact is the overall pixels. So when we talk about pixel density, standard or low density is considered to be somewhere around 120 pixels per inch. And when we start to consider high density displays these devices support up to 240 pixels per inch. And if we square that, we'll have quadruple the number of pixels from a standard display.

And this isn't even as high as some of the new devices that have been coming now, which can support three and four times the size of the standard density. Now, in this course so far, we've created standard size resolution graphics. Our banner graphic for large screens was set to 980 pixels wide, and on a standard display, this graphic looks perfect. Now, however, when we consider higher resolution displays, when we use the same graphic on those higher resolution displays, when we look at these, they'll start to look really soft or out of focus. What's happening here is these devices have more pixels than is in the actual graphic itself.

So this graphic is now being stretched across more pixels than are in the actual file. To alleviate this, we can create graphics that are double the size in the actual pixels. And then those larger graphics are going to be scaled down to these devices. All that extra data from this scaling down of the graphics can be represented in all of the extra pixels on these screens. So now back in Photoshop I'm going to cancel out of the Slice Options. I'm going to go back to the myWebsite folder on the desktop here and open up the images directory. So here are all of the standard graphics we created earlier.

So let's go back over to Photoshop. Let's come up to the File menu. Let's choose Save for Web. going to zoom out here to see all the slices. I can select each of these slices, and see the compression settings. I've kept the compression setting quality the same for all of these. Let's come down and choose Save. Now from this dialogue box, we're going to come down and choose All User Slices. Next, let's come down to Settings. Let's go down to Other. And under Saving Files, we're going to keep this slice name. And then for the second parameter here, for the final naming, let's put _2x.

This will indicate to us that these graphics are double the size of the originals. Let's click OK. Let's choose my website. Let's pick the images directory and then hit Save. Back in the my website folder on the desktop, we'll now see we have a _2x for all of the individual graphics that we have doubled in size. Now, if you'd like to use this Photoshop file to create your standard definition graphics from the same slices. Let's come back to Photoshop, let's do File>Save for Web again. And what we can do in here, is select all of the slices, hold in the Shift key. With all of these selected, you can come down here to the Percent.

Put in 50% here. What Photoshop will do is scale all of these graphics to half the original size. You can click Save. Still targeting the images directory, come down to Settings. Choose Other. And then come in here and remove the _2x on the slice name. Click OK, hit Save. These are already here, so I'm going to hit Replace. And then Photoshop will recreate all of these standard size graphics, as well. Now that we have all of our graphics created to support high resolution displays, next we'll modify our CSS file to include these high resolution graphics in devices that support them.

Find answers to the most frequently asked questions about Creating a Responsive Web Design.


Expand all | Collapse all
please wait ...
Q: This course was updated on 12/12/2013. What changed
A: There is a brand new chapter, "Supporting High-Definition (Retina) Displays," and new exercise files containing higher resolution graphics.
 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating a Responsive Web Design.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.