Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Establishing the layout grid

From: CSS: Page Layouts

Video: Establishing the layout grid

Because the planning stage of the design process is so critical to a site's success, I want to take a few movies to walk through my typical workflow. I want to start by illustrating the use of grids for planning layouts. Although I use a grid as the basis of all my layouts, fixed layouts lend themselves particularly well to grid-based designs. If you're already a graphic designer, I'm betting that you're pretty familiar designing around a grid; and if you are not, I think you'll soon see the advantages that grids give you when creating layouts. So I am going to be working with this file fixed_planning.ai, and here I am again, of course, in Illustrator.

Establishing the layout grid

Because the planning stage of the design process is so critical to a site's success, I want to take a few movies to walk through my typical workflow. I want to start by illustrating the use of grids for planning layouts. Although I use a grid as the basis of all my layouts, fixed layouts lend themselves particularly well to grid-based designs. If you're already a graphic designer, I'm betting that you're pretty familiar designing around a grid; and if you are not, I think you'll soon see the advantages that grids give you when creating layouts. So I am going to be working with this file fixed_planning.ai, and here I am again, of course, in Illustrator.

Now, I have saved the finished version of this file in the Assets folder, which is a located directly in the exercise files folder, and if you want, you can open it up. And of course you are going to open up the finished version of what we are going to be doing here. Actually, what I would most encourage you to do is to just grab a scrap piece of paper, a scrapbook, some graph paper, or something like that, because if I was doing this on my own and not filming it for this particular lesson, that's exactly what I would be doing. I'd have my sketchbook opened up. I would have a piece of graph paper or something like that, and that's what I would be using to do this planning session that we are about to go over.

However, because I am filming it here as part of the title, I can't really show my sketchbook. It wouldn't film very well, and I'll be quite honest with you, nobody is going to be able to read my writing, so I am just going to use Illustrator. You do not have to do it with me, but if you're very comfortable in Illustrator or another layout program, feel free to use that instead. But I am a big fan of sketching these things out beforehand, actually. We are going to go through all these different steps that I use to plan layouts, and I just want to mention that even though we are planning a fixed layout, most of these steps are the same for whatever type of layout I am doing.

Some of them are specific to fixed layouts, because that's our focus this chapter, but really this workflow process is what I used for almost all of my layouts. The first thing that you do with a fixed layout is you define the target resolution. That's job number one. Now, monitor sizes are trending upward a little bit, but we need to target something that's pretty much the most likely resolution for your target audience. For the most part, the average monitor size out there is 1024. Now 1280 is certainly a resolution that's gained in popularity, and there are a lot of people out there using them, but so many people are still using 1024x768, that's the resolution size or the target resolution that I'm going to choose.

You don't want to make your layout exactly 1024, because you got the browser chrome, such as the scrollbars or toolbars. What if somebody is browsing with a window that's only half open? So my target resolution for this particular layout is going to be 960 pixels. That's what I am going to target. It's a little bit smaller than 1024, but it's not altogether going to look lost in a 1280-layout either. Now you may or may not have seen that 960 resolution. It's very, very popular with web sites, especially fixed sites, and there is a reason for that.

There is a method behind why some people choose this size. 960 is divisible by a lot of numbers. Just to give you an idea, 1, 2, 3, 4, 5, 6, 8, 10, 12 15, 16, 20, 24, 30, 32. You get the idea. It just keeps going. There are a lot of numbers that will divide into 960, and what that allows you to do is when you're creating a grid like we are going to be creating in just a moment, it allows you to create a grid that gives you a lot of flexible column creation. You can have 12 columns, 16 columns, 30 columns, 6 columns, however you want to do it, and still divide it by 960, so that is another reason why that is such a popular target resolution for layouts.

So what I am going to do is I am just going to go over here and grab a rectangle and I am just going to draw a box that is 960 pixels by 1200 pixels. I am just going to click OK. There's my box. And I am just going to move this so that it's on the artboard. All right! So that's sort of the predefined space, if you will, and I will line it up in just a moment when I get my grid, but that's more or less sort of the predefined space that I am going to be designing inside of as I begin to do my layout.

The next thing that I want to do is I want to define the base unit for my grid. As I mentioned before, all the layouts I do I design on a grid, and that really helps create very coherent compositions, so that everything sort of relate to each other and everything has a place to line up that is based on a similar unit of measurement. That base unit that you are going to use for your grid is going to very widely based on what you are trying to do. One of the things I would recommend doing is doing a number that your target resolution is divisible by. So that's one of the things that I would recommend doing.

The other thing is it should have some meaning for content within the page. Let me give you an example. If I was doing a photo gallery, for example, the thumbnail size might be a really good place to start when I am talking about defining a base unit for my grid, or something that's going to be divisible into my thumbnail sizes. An image, it could be really anything you want. Now the page that we are going to be sort of crafting over the course of this chapter is very text heavy, so basing a layout off of your default text unit is not a bad idea.

So what I am going to do is, my base unit for my grid in this case is going to be 16 pixels. That's the default font size for almost every browser out of the box. Now users can certainly change it, but you are never going to get to a situation where you craft a layout for people online that they can't change in some way through their browser, whether zooming up on it or changing the text size or telling images not to display. They have got all sorts of control over your layout. So what I am doing is I am basically establishing a baseline for my layout. The base unit for it is going to be 16 pixels.

I will say I'm a glutton for punishment here because most examples I see of the people that are doing tutorials like this, they will define a grid that's based off of ten pixels because the math is whole lot easier to do. But I want this to be a very real-world example, and I frequently create grids that are based off of 16 pixels, especially for layouts that are going to be very text heavy, because that's essentially the size of 1em. So later on, when I am writing my styles and I make something 1em, I know it corresponds to the layout grid that I am using. So there is a rationale behind picking a weird number like 16.

So I am going to go up and look at my Preferences here. I want to show you something about Illustrator. One of the nice things you can do is go ahead and define a grid, and I am going to put a gridline every 80 pixels, and I am going to subdivide that by 5. So of course, 16 goes in 80 5 times, is going to give me a gridline every 16 pixels, but more importantly, by putting a grid line at every 80 pixels, that's going to give me a total of 12 columns within my 960 pixels. So essentially, I am going to have 12 columns that I can use to arrange all the elements on my page in my layout.

Now, why 12 columns? It's kind of just an arbitrary number that I picked. I could do 16. I could do anything that's divisible by 960, but 12 gives me a nice sort of even number to work from. So I am going to click OK. I am going to turn on the visibility of my grid, and there is my grid. Now I am going to take this box that I created. I am going to sort of reposition that, so that it's lined up to the grid here, okay. So I am just going to save my file. Now, if you were sketching this out, obviously graph paper would come in really handy here, but you don't need to have that defined grid. You don't have to draw that grid on your page.

You know, I typically will just do a box, draw a little box on a piece of paper, and then just write little notes to myself inside, 16 pixels, and then I'll make sure that everything that I am doing is divisible by those numbers so that I come out with a layout that's still based off of this grid. So now we know which resolution we are targeting, we know what our base unit of our grid is going to be, and we know how many columns we are going to be using within our grid, and that's 12 columns. So next up, we are going to need to finalize our layout planning by defining column spacing and then calculating our element dimensions, and we are going to do that in our next movie.

Show transcript

This video is part of

Image for CSS: Page Layouts
CSS: Page Layouts

71 video lessons · 40873 viewers

James Williamson
Author

 
Expand all | Collapse all
  1. 4m 20s
    1. Welcome
      54s
    2. How to use the exercise files
      3m 26s
  2. 1h 39m
    1. Box model review
      8m 47s
    2. Calculating element dimensions
      11m 11s
    3. Understanding margin collapse
      7m 59s
    4. Calculating em values
      7m 41s
    5. Calculating percentage values
      7m 51s
    6. Normal document flow
      13m 3s
    7. Controlling element display
      8m 53s
    8. Using CSS Resets
      7m 11s
    9. Fixed, fluid, and responsive layouts
      9m 9s
    10. CSS debugging tools
      6m 46s
    11. Using the Firebug Inspector and the WebKit Web Inspector
      11m 5s
  3. 53m 15s
    1. Page design workflow
      3m 6s
    2. Page design tools
      4m 56s
    3. Determining page structure
      7m 18s
    4. Creating image assets
      8m 58s
    5. Creating initial page structure
      7m 3s
    6. Adding meaning with classes and IDs
      5m 23s
    7. Structuring content with HTML5
      6m 6s
    8. Building internal structure
      10m 25s
  4. 1h 36m
    1. Floating elements
      7m 50s
    2. Clearing floats
      7m 28s
    3. Containing floats
      7m 50s
    4. Clearfix technique
      10m 38s
    5. Floating inline elements
      14m 34s
    6. Two-column floated layouts
      8m 17s
    7. Three-column floated layouts
      11m 30s
    8. Column height considerations
      7m 3s
    9. Creating equal-height columns
      10m 42s
    10. Floats: Lab
      5m 25s
    11. Floats: Solution
      5m 21s
  5. 51m 42s
    1. Relative positioning
      7m 59s
    2. Absolute positioning
      8m 59s
    3. Fixed positioning
      4m 23s
    4. Controlling stacking order
      8m 31s
    5. Clipping content
      8m 21s
    6. Controlling content overflow
      5m 38s
    7. Positioning elements: Lab
      3m 59s
    8. Positioning elements: Solution
      3m 52s
  6. 48m 46s
    1. Design considerations for fixed layouts
      3m 28s
    2. Establishing the layout grid
      7m 57s
    3. Defining column spacing
      9m 30s
    4. Applying the grid through CSS
      8m 56s
    5. Creating grid-based assets
      8m 26s
    6. Grid design resources
      6m 22s
    7. Building fixed layouts: Lab
      4m 7s
  7. 44m 35s
    1. Designing for flexible layouts
      2m 30s
    2. Calculating percentage values
      8m 45s
    3. Setting flexible width values
      6m 6s
    4. Making images flexible
      8m 10s
    5. Setting minimum and maximum widths
      7m 24s
    6. Building flexible layouts: Lab
      4m 53s
    7. Building flexible layouts: Solution
      6m 47s
  8. 49m 36s
    1. Responsive layout overview
      3m 49s
    2. Using media queries
      7m 16s
    3. Organizing styles
      8m 39s
    4. Making content responsive
      8m 33s
    5. Mobile design considerations
      7m 32s
    6. Building responsive layouts: Lab
      4m 23s
    7. Building responsive layouts: Solution
      9m 24s
  9. 1h 22m
    1. Creating multi-column text
      6m 36s
    2. Using borders to enhance design
      13m 59s
    3. Rounding corners
      6m 56s
    4. Adding drop shadows
      10m 35s
    5. Working with opacity
      6m 8s
    6. Utilizing the background property
      15m 5s
    7. Working with CSS sprites
      7m 58s
    8. Enhancing page design: Lab
      6m 22s
    9. Enhancing page design: Solution
      8m 38s
  10. 6m 25s
    1. Additional resources
      6m 25s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
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.


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 "Already a member? Log in

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 CSS: Page Layouts.

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

Your file was successfully uploaded.

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.