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

Creating a Responsive Web Design
Illustration by

Creating and slicing multiple-sized banner images


From:

Creating a Responsive Web Design

with Chris Converse

Video: Creating and slicing multiple-sized banner images

Now the first set of graphics we're going to create are going to be the three different banner sizes. So let's come back to the exercise files. Let's open up folder 3, and let's open up banner-artwork.psd. Now, if you take a look in the Layers panel, on this file you'll see that we have three different Smart Objects here. Each Smart Object is clip grouped into a black square. So to see what the clipping group does, I'll select the middle one here, come up to the Layer menu, choose Release Clipping Mask, and then you'll see the original photograph here not clipped inside of the black box that you can see in the background.
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 and slicing multiple-sized banner images

Now the first set of graphics we're going to create are going to be the three different banner sizes. So let's come back to the exercise files. Let's open up folder 3, and let's open up banner-artwork.psd. Now, if you take a look in the Layers panel, on this file you'll see that we have three different Smart Objects here. Each Smart Object is clip grouped into a black square. So to see what the clipping group does, I'll select the middle one here, come up to the Layer menu, choose Release Clipping Mask, and then you'll see the original photograph here not clipped inside of the black box that you can see in the background.

So this gives us a really nice way to non-destructively crop our images. So let's come back and re-enable that clipping mask. And if I move the photograph around while it's clipped, you'll see that the photograph will remain inside of that black box area. So the black boxes I created on those individual layers match the sizes of the graphics we want to have in our final project. Now, if you want to modify the artwork inside of the banners, double-click on one of these Smart Objects and Photoshop will bring up the original graphic inside of that Smart Object.

So here we can see the original graphic here. I'm going to come in here and just make a change. I'll just invert the image. Once the image is inverted, I'll come up here and choose File > Save, and then notice that every instance of the Smart Object on the background canvas will update based on the changes I make here. So I'm going to undo that change, hit Save. So inside of here you can copy and paste your own artwork and then again customize the banners with whatever content you want. Once that's complete, what we're going to do next is create slices on here so that we can save out individual graphics from this one single Photoshop canvas.

So let's come over to the Cropping tool. Let's click and hold, and let's come down and select the Slicing tool. So the Slicing tool allows us to click and drag an area on this canvas that can be saved out as a separate graphic from the overall Photoshop file. So let's bring our cursor to the upper left-hand corner of the larger banner. Let's click and drag and draw out a slice. Now, the tool will be a little sticky so it should stick to the actual black box underneath. Once we've drawn the slice, let's double- click and bring up the slice properties.

So inside here we can give our slice a name and make sure of the dimensions as well. So for the name let's call this banner_large. Let's come down here and make sure that this is set to 980 pixels wide by 275 pixels tall, then click OK. Back in our canvas, let's draw a slice for the medium size. Once the slice is drawn, double-click. We'll call this banner_medium and make sure this is set to 800 by 200 pixels. Let's choose OK.

Let's come down and draw one final slice for the small banner, double-click. We'll call this banner_small, and this should be set to 500 x 75. So this kind of stuck to 74 so I can just type in 75 and click OK here. Now that we've got our slices drawn, let's come up to the File menu. Let's choose Save for Web & Devices. If you're using Photoshop CS6, this menu will simply say Save for Web. This is going to bring up a large dialog box where we can pick individual slices and pick compression settings and file formats for each of our slices.

So in this main area here I'm just going to zoom out a little bit so we can see all three slices. So I'm going to select the top slice here, and on the upper left-hand corner here I can see I'm on my Slice tool. With this slice selected in the right-hand side, I can pick the file format, so I can choose GIF, JPEG, two different PNG files, or a Windows bitmap, and I can choose the quality over here. So for this one we're going to come in here and make sure we have JPEG set. And for the Quality since this is the large size on computers, what we're going to do is set that to 80% quality.

Now, in the lower left-hand corner Photoshop will show me exactly how big this file is going to be when we save this out. So this particular JPEG is going to be 150.8 kilobytes. Let's come into the canvas area and select the medium banner. We're going to make sure this is set to JPEG as well, and in here we're going to set the Quality down to 50%. We're probably on a tablet device for this particular size, and tablet devices have a much higher pixel density on their screens, so we can get away with compressing this a little bit more.

And this is going to be only 41 kilobytes if we look down in the file size. Next, we'll come into the main canvas, select the smallest banner. Set that to a JPEG file. These are going to be used mostly on phones, which again have a higher pixel density and much smaller screens as well, so we can get away with even more file compression here. So let's set this down to 30%. That's going to give us a 7.3 kilobyte file size. And once we're done here, we're going to come down and click Save.

This next dialog wants to know where to save the files and which particular slices. So let's start at the bottom. Under Slices, let's come down here and choose All User Slices. This tells Photoshop only the slices that you've actually drawn are the ones we want to save. And up in the file structure let's come in and pick myWebsite, and let's pick the images directory, and then we'll hit Save. Now, we already have the graphics in there because we added them at the beginning of the course, but if you've made changes or any customizations, we want to replace those individual graphics.

So we'll come over here, click Replace, and have Photoshop overwrite the graphics we added with the new ones we just created. Now, at this point, let's choose File > Save. All of your slices are actually saved with this Photoshop file, so we can always go back, make additional changes, and just do a Save for Web and update your slices as many times as you want. And now I'll close this file. Next we'll create the remaining artwork for the rest of the elements in our design.

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

Notes cannot be added for locked videos.

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.