SlideShare uma empresa Scribd logo
1 de 64
Baixar para ler offline
the 960 grid
system
Easy codes, complex layouts
What is it?
• Ready-made CSS file
• Make grid-based layouts within 960px
• Cross-browser compatible
• Three versions: 12-col, 16-col, 24-col
• No need to compute widths
How to get started
• Create mock-up wireframes for your site,
  using either 12, 16, or 24 columns
• Link the reset CSS file
   <link	
  rel="stylesheet"	
  href="css/reset.css"	
  />

• Link the CSS file of the 960 grid
   <link	
  rel="stylesheet"	
  href="css/960.css"	
  />
choose a
  container grid

<div	
  class=“container_12”>




<div	
  class=“container_16”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
use class
    names to give
   column widths
<div	
  class=“grid_12”>

<div	
  class=“grid_11”>

<div	
  class=“grid_2”>

<div	
  class=“grid_7”>

<div	
  class=“grid_4”>
ADD a CLEAR DIV
 after each row

<div	
  class=“clear”>




<div	
  class=“clear”>
move divs by pulling and pushing




<div	
  class=“grid_3	
  push_1”>   <div	
  class=“grid_3	
  pull_1”>
Add white spaces by using prefix/suffix


                                           3-column space




<div	
  class=“grid_6	
  suffix_3”>   OR   <div	
  class=“grid_3	
  prefix_3”>
Avoid double-margins using alpha/omega
Avoid double-margins using alpha/omega




<div	
  class="grid_4">            <div	
  class="grid_5">           <div	
  class="grid_3">
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_3">   	
  	
  <h1>3-­‐col</h1>
	
  	
  	
  	
  <h1>4-­‐col</h1>   	
  	
  	
   <h1>3-­‐col</h1>     </div>
	
  	
  </div>                     	
  	
  </div>
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_2">
	
  	
  	
   <h1>4-­‐col</h1>      	
  	
  	
   <h1>2-­‐col</h1>
	
  	
  </div>                     	
  	
  </div>
</div>                             	
  	
  <div	
  class="grid_1">
                                   	
  	
  	
   <h1>1-­‐col</h1>
                                   	
  	
  </div>
                                   	
  	
  <div	
  class="grid_4">
                                   	
  	
  	
   <h1>4-­‐col</h1>
                                   	
  	
  </div>
                                   </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_4">            <div	
  class="grid_5">           <div	
  class="grid_3">
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_3">   	
  	
  <h1>3-­‐col</h1>
	
  	
  	
  	
  <h1>4-­‐col</h1>   	
  	
  	
   <h1>3-­‐col</h1>     </div>
	
  	
  </div>                     	
  	
  </div>
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_2">
	
  	
  	
   <h1>4-­‐col</h1>      	
  	
  	
   <h1>2-­‐col</h1>
	
  	
  </div>                     	
  	
  </div>
</div>                             	
  	
  <div	
  class="grid_1">
                                   	
  	
  	
   <h1>1-­‐col</h1>
                                   	
  	
  </div>
                                   	
  	
  <div	
  class="grid_4">
                                   	
  	
  	
   <h1>4-­‐col</h1>
                                   	
  	
  </div>
                                   </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_4">            <div	
  class="grid_5">           <div	
  class="grid_3">
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_3">   	
  	
  <h1>3-­‐col</h1>
	
  	
  	
  	
  <h1>4-­‐col</h1>   	
  	
  	
   <h1>3-­‐col</h1>     </div>
	
  	
  </div>                     	
  	
  </div>
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_2">
	
  	
  	
   <h1>4-­‐col</h1>      	
  	
  	
   <h1>2-­‐col</h1>
	
  	
  </div>                     	
  	
  </div>
</div>                             	
  	
  <div	
  class="grid_1">
                                   	
  	
  	
   <h1>1-­‐col</h1>
                                   	
  	
  </div>
                                   	
  	
  <div	
  class="grid_4">
                                   	
  	
  	
   <h1>4-­‐col</h1>
                                   	
  	
  </div>
                                   </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_4">            <div	
  class="grid_5">           <div	
  class="grid_3">
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_3">   	
  	
  <h1>3-­‐col</h1>
	
  	
  	
  	
  <h1>4-­‐col</h1>   	
  	
  	
   <h1>3-­‐col</h1>     </div>
	
  	
  </div>                     	
  	
  </div>
	
  	
  <div	
  class="grid_4">    	
  	
  <div	
  class="grid_2">
	
  	
  	
   <h1>4-­‐col</h1>      	
  	
  	
   <h1>2-­‐col</h1>
	
  	
  </div>                     	
  	
  </div>
</div>                             	
  	
  <div	
  class="grid_1">
                                   	
  	
  	
   <h1>1-­‐col</h1>
                                   	
  	
  </div>
                                   	
  	
  <div	
  class="grid_4">
                                   	
  	
  	
   <h1>4-­‐col</h1>
double margins!!                   	
  	
  </div>
                                   </div>
Avoid double-margins using alpha/omega




        <div	
  class="grid_4">
        	
  	
  <div	
  class="grid_4	
  alpha	
  omega">
        	
  	
  	
  	
  <h1>4-­‐col</h1>
        	
  	
  </div>
        	
  	
  <div	
  class="grid_4	
  alpha	
  omega">
        	
  	
  	
  
                 <h1>4-­‐col</h1>
        	
  	
  </div>
        </div>
Avoid double-margins using alpha/omega




        <div	
  class="grid_4">
        	
  	
  <div	
  class="grid_4	
  alpha	
  omega">
        	
  	
  	
  	
  <h1>4-­‐col</h1>
        	
  	
  </div>
        	
  	
  <div	
  class="grid_4	
  alpha	
  omega">
        	
  	
  	
  
                 <h1>4-­‐col</h1>
        	
  	
  </div>
        </div>
Avoid double-margins using alpha/omega




                <div	
  class="grid_4">
                	
  	
  <div	
  class="grid_4	
  alpha	
  omega">
                	
  	
  	
  	
  <h1>4-­‐col</h1>
alpha:          	
  	
  </div>
no left margin  	
  	
  <div	
  class="grid_4	
  alpha	
  omega">
omega:	
        	
  	
  	
  
                         <h1>4-­‐col</h1>
no right margin 	
  	
  </div>
                </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
Avoid double-margins using alpha/omega




<div	
  class="grid_5">                    	
  	
  <div	
  class="grid_1	
  alpha">
	
  	
  <div	
  class="grid_3	
  alpha">   	
  	
  	
  <h1>1-­‐col</h1>
	
  	
  	
  <h1>3-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             	
  	
  <div	
  class="grid_4	
  omega">
	
  	
  <div	
  class="grid_2	
  omega">   	
  	
  	
  <h1>4-­‐col</h1>
	
  	
  	
  <h1>2-­‐col</h1>               	
  	
  </div>
	
  	
  </div>                             </div>
everything adds up
everything adds up
•   All row widths should always add up to its
    container div
everything adds up
•   All row widths should always add up to its
    container div
•   For a 12-col grid:
    <div	
  class=“grid_3	
  suffix_1”>
    <div	
  class=“grid_7”>
    <div	
  class=“grid_1”>
everything adds up
•   All row widths should always add up to its
    container div
•   For a 12-col grid:
    <div	
  class=“grid_3	
  suffix_1”>
                                          3+1+7+1=12
    <div	
  class=“grid_7”>
    <div	
  class=“grid_1”>
everything adds up
•   All row widths should always add up to its
    container div
•   For a 12-col grid:
    <div	
  class=“grid_3	
  suffix_1”>
                                          3+1+7+1=12
    <div	
  class=“grid_7”>
    <div	
  class=“grid_1”>
•   For a 16-col grid:
    <div	
  class=“grid_5”>
    <div	
  class=“grid_2	
  prefix_1”>
    <div	
  class=“grid_2	
  prefix_1”>
    <div	
  class=“grid_2”>
    <div	
  class=“grid_3”>
everything adds up
•   All row widths should always add up to its
    container div
•   For a 12-col grid:
    <div	
  class=“grid_3	
  suffix_1”>
                                          3+1+7+1=12
    <div	
  class=“grid_7”>
    <div	
  class=“grid_1”>
•   For a 16-col grid:
                                              5+2+1+
    <div	
  class=“grid_5”>
    <div	
  class=“grid_2	
  prefix_1”>      2+1+2+3
    <div	
  class=“grid_2	
  prefix_1”>        =16
    <div	
  class=“grid_2”>
    <div	
  class=“grid_3”>
REVIEW 960
• Link your HTML to the 960 CSS files
• Choose your container grid type
  <div	
  class=“container_12”>

• Add widths to your divs using grid
  <div	
  class=“grid_5”>	
  
  <div	
  class=“grid_12”>

• Use clear divs after each row
  <div	
  class=“clear”>
REVIEW 960
• Move divs using push and pull
  <div	
  class=“grid_5	
  push_2”>
  <div	
  class=“grid_7	
  pull_1”>

• Add white space using prefix and suffix
  <div	
  class=“grid_11	
  prefix_1”>
  <div	
  class=“grid_9	
  suffix_3”>

• Remove margins using alpha and omega
  <div	
  class=“grid_6	
  alpha”>
  <div	
  class=“grid_3	
  omega”>
Speedtest 01

<!-­‐-­‐	
  CONTAINER	
  -­‐-­‐>
<div	
  class="container_16">
Speedtest 02
<!-­‐-­‐	
  SIDEBAR	
  -­‐-­‐>
<div	
  class="grid_4">
<!-­‐-­‐	
  ALL	
  CONTENT	
  -­‐-­‐>
<div	
  class="grid_12">
Speedtest 03

div.container_16{
background:#CCCCCC;
}
Speedtest 04

<!-­‐-­‐	
  PHOTO	
  -­‐-­‐>
<div	
  class="grid_4	
  prefix_8	
  alpha	
  
omega">
Speedtest 05
<!-­‐-­‐	
  SUB1	
  -­‐-­‐>
<div	
  class="grid_4	
  alpha">
<!-­‐-­‐	
  SUB2	
  -­‐-­‐>
<div	
  class="grid_4">
<!-­‐-­‐	
  SUB3	
  -­‐-­‐>
<div	
  class="grid_4	
  omega">

Mais conteúdo relacionado

Destaque

What is grid system
What is grid systemWhat is grid system
What is grid system
chetankane
 
Design Scripts: Designing (inter)action with intent
Design Scripts: Designing (inter)action with intent Design Scripts: Designing (inter)action with intent
Design Scripts: Designing (inter)action with intent
Bas Leurs
 
Design Theory - Lecture 03: Design as Learning / Methods & Tools
Design Theory - Lecture 03: Design as Learning / Methods & ToolsDesign Theory - Lecture 03: Design as Learning / Methods & Tools
Design Theory - Lecture 03: Design as Learning / Methods & Tools
Bas Leurs
 
Design Theory - Lecture 02: Design processes & Problem solving
Design Theory - Lecture 02: Design processes & Problem solvingDesign Theory - Lecture 02: Design processes & Problem solving
Design Theory - Lecture 02: Design processes & Problem solving
Bas Leurs
 
Design theory - Lecture 04: Design Expertise / Design Thinking / Key concepts
Design theory - Lecture 04: Design Expertise / Design Thinking / Key conceptsDesign theory - Lecture 04: Design Expertise / Design Thinking / Key concepts
Design theory - Lecture 04: Design Expertise / Design Thinking / Key concepts
Bas Leurs
 
Design Theory - Lecture 01: What is design?
Design Theory - Lecture 01: What is design?Design Theory - Lecture 01: What is design?
Design Theory - Lecture 01: What is design?
Bas Leurs
 

Destaque (15)

960 Grid System - A hands-on introduction
960 Grid System -  A hands-on introduction960 Grid System -  A hands-on introduction
960 Grid System - A hands-on introduction
 
What is grid system
What is grid systemWhat is grid system
What is grid system
 
Thinking about Design
Thinking about DesignThinking about Design
Thinking about Design
 
Grid Based Layout
Grid Based LayoutGrid Based Layout
Grid Based Layout
 
Design Scripts: Designing (inter)action with intent
Design Scripts: Designing (inter)action with intent Design Scripts: Designing (inter)action with intent
Design Scripts: Designing (inter)action with intent
 
Grid Systems: Building Blocks to a Better User Experience
Grid Systems: Building Blocks to a Better User ExperienceGrid Systems: Building Blocks to a Better User Experience
Grid Systems: Building Blocks to a Better User Experience
 
Design Theory - Lecture 03: Design as Learning / Methods & Tools
Design Theory - Lecture 03: Design as Learning / Methods & ToolsDesign Theory - Lecture 03: Design as Learning / Methods & Tools
Design Theory - Lecture 03: Design as Learning / Methods & Tools
 
Modernist Typography and the Swiss grid - Carlo Giannasca
Modernist Typography and the Swiss grid - Carlo GiannascaModernist Typography and the Swiss grid - Carlo Giannasca
Modernist Typography and the Swiss grid - Carlo Giannasca
 
Métodos Proyectuales - Christopher Jones
Métodos Proyectuales - Christopher JonesMétodos Proyectuales - Christopher Jones
Métodos Proyectuales - Christopher Jones
 
자주 사용되는 UI 패턴(컴포넌트) 과 UI 레이아웃
자주 사용되는 UI 패턴(컴포넌트) 과 UI 레이아웃자주 사용되는 UI 패턴(컴포넌트) 과 UI 레이아웃
자주 사용되는 UI 패턴(컴포넌트) 과 UI 레이아웃
 
Design Theory - Lecture 02: Design processes & Problem solving
Design Theory - Lecture 02: Design processes & Problem solvingDesign Theory - Lecture 02: Design processes & Problem solving
Design Theory - Lecture 02: Design processes & Problem solving
 
Design theory - Lecture 04: Design Expertise / Design Thinking / Key concepts
Design theory - Lecture 04: Design Expertise / Design Thinking / Key conceptsDesign theory - Lecture 04: Design Expertise / Design Thinking / Key concepts
Design theory - Lecture 04: Design Expertise / Design Thinking / Key concepts
 
Theory of design
Theory of designTheory of design
Theory of design
 
Design Theory - Lecture 01: What is design?
Design Theory - Lecture 01: What is design?Design Theory - Lecture 01: What is design?
Design Theory - Lecture 01: What is design?
 
Grid Systems
Grid SystemsGrid Systems
Grid Systems
 

Semelhante a 960 Grid System

Copy of-a-walk-around-westfall-plaza
Copy of-a-walk-around-westfall-plazaCopy of-a-walk-around-westfall-plaza
Copy of-a-walk-around-westfall-plaza
helgawerth
 
Twitter bootstrap
Twitter bootstrapTwitter bootstrap
Twitter bootstrap
dennisdc
 

Semelhante a 960 Grid System (20)

The Responsive Grid & You: Extending Your WordPress Site Across Multiple Dev...
The Responsive Grid & You:  Extending Your WordPress Site Across Multiple Dev...The Responsive Grid & You:  Extending Your WordPress Site Across Multiple Dev...
The Responsive Grid & You: Extending Your WordPress Site Across Multiple Dev...
 
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
 
Intro to Bootstrap
Intro to BootstrapIntro to Bootstrap
Intro to Bootstrap
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
 
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS Frameworks
 
World of CSS Grid
World of CSS GridWorld of CSS Grid
World of CSS Grid
 
Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout
 
Material design
Material designMaterial design
Material design
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
 
Copy of-a-walk-around-westfall-plaza
Copy of-a-walk-around-westfall-plazaCopy of-a-walk-around-westfall-plaza
Copy of-a-walk-around-westfall-plaza
 
Daliy juice
Daliy juiceDaliy juice
Daliy juice
 
bootstrap.pptx
bootstrap.pptxbootstrap.pptx
bootstrap.pptx
 
Bootstrap 3 Cheat Sheet PDF Reference
Bootstrap 3 Cheat Sheet PDF ReferenceBootstrap 3 Cheat Sheet PDF Reference
Bootstrap 3 Cheat Sheet PDF Reference
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
 
Twitter bootstrap
Twitter bootstrapTwitter bootstrap
Twitter bootstrap
 
The multicolumn challenge: accepted!
The multicolumn challenge: accepted!The multicolumn challenge: accepted!
The multicolumn challenge: accepted!
 
Gaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third YearGaurav Jatav , BCA Third Year
Gaurav Jatav , BCA Third Year
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Capstone Website Code
Capstone Website CodeCapstone Website Code
Capstone Website Code
 

Mais de Gerson Abesamis (20)

YMSAT Project Proposal Form
YMSAT Project Proposal FormYMSAT Project Proposal Form
YMSAT Project Proposal Form
 
YMSAT Student Primer
YMSAT Student PrimerYMSAT Student Primer
YMSAT Student Primer
 
Final Project
Final ProjectFinal Project
Final Project
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
Photography Orientation 11-12
Photography Orientation 11-12Photography Orientation 11-12
Photography Orientation 11-12
 
WebDev2 Orientation 11-12
WebDev2 Orientation 11-12WebDev2 Orientation 11-12
WebDev2 Orientation 11-12
 
Photography Class 11-12
Photography Class 11-12Photography Class 11-12
Photography Class 11-12
 
Prewar report
Prewar reportPrewar report
Prewar report
 
Typo Graphics
Typo GraphicsTypo Graphics
Typo Graphics
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Typographic Contrast
Typographic ContrastTypographic Contrast
Typographic Contrast
 
WebDev Template Finals
WebDev Template FinalsWebDev Template Finals
WebDev Template Finals
 
Css positioning
Css positioningCss positioning
Css positioning
 
Pinhole photography vale
Pinhole photography valePinhole photography vale
Pinhole photography vale
 
CSS Box Model and Dimensions
CSS Box Model and DimensionsCSS Box Model and Dimensions
CSS Box Model and Dimensions
 
Interface Design
Interface DesignInterface Design
Interface Design
 
CSS Lists and Tables
CSS Lists and TablesCSS Lists and Tables
CSS Lists and Tables
 
CSS Refresher
CSS RefresherCSS Refresher
CSS Refresher
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
Information Architecture
Information ArchitectureInformation Architecture
Information Architecture
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

960 Grid System

  • 1. the 960 grid system Easy codes, complex layouts
  • 2. What is it? • Ready-made CSS file • Make grid-based layouts within 960px • Cross-browser compatible • Three versions: 12-col, 16-col, 24-col • No need to compute widths
  • 3. How to get started • Create mock-up wireframes for your site, using either 12, 16, or 24 columns • Link the reset CSS file <link  rel="stylesheet"  href="css/reset.css"  /> • Link the CSS file of the 960 grid <link  rel="stylesheet"  href="css/960.css"  />
  • 4. choose a container grid <div  class=“container_12”> <div  class=“container_16”>
  • 5. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 6. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 7. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 8. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 9. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 10. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 11. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 12. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 13. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 14. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 15. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 16. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 17. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 18. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 19. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 20. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 21. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 22. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 23. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 24. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 25. use class names to give column widths <div  class=“grid_12”> <div  class=“grid_11”> <div  class=“grid_2”> <div  class=“grid_7”> <div  class=“grid_4”>
  • 26. ADD a CLEAR DIV after each row <div  class=“clear”> <div  class=“clear”>
  • 27. move divs by pulling and pushing <div  class=“grid_3  push_1”> <div  class=“grid_3  pull_1”>
  • 28. Add white spaces by using prefix/suffix 3-column space <div  class=“grid_6  suffix_3”> OR <div  class=“grid_3  prefix_3”>
  • 30. Avoid double-margins using alpha/omega <div  class="grid_4"> <div  class="grid_5"> <div  class="grid_3">    <div  class="grid_4">    <div  class="grid_3">    <h1>3-­‐col</h1>        <h1>4-­‐col</h1>       <h1>3-­‐col</h1> </div>    </div>    </div>    <div  class="grid_4">    <div  class="grid_2">       <h1>4-­‐col</h1>       <h1>2-­‐col</h1>    </div>    </div> </div>    <div  class="grid_1">       <h1>1-­‐col</h1>    </div>    <div  class="grid_4">       <h1>4-­‐col</h1>    </div> </div>
  • 31. Avoid double-margins using alpha/omega <div  class="grid_4"> <div  class="grid_5"> <div  class="grid_3">    <div  class="grid_4">    <div  class="grid_3">    <h1>3-­‐col</h1>        <h1>4-­‐col</h1>       <h1>3-­‐col</h1> </div>    </div>    </div>    <div  class="grid_4">    <div  class="grid_2">       <h1>4-­‐col</h1>       <h1>2-­‐col</h1>    </div>    </div> </div>    <div  class="grid_1">       <h1>1-­‐col</h1>    </div>    <div  class="grid_4">       <h1>4-­‐col</h1>    </div> </div>
  • 32. Avoid double-margins using alpha/omega <div  class="grid_4"> <div  class="grid_5"> <div  class="grid_3">    <div  class="grid_4">    <div  class="grid_3">    <h1>3-­‐col</h1>        <h1>4-­‐col</h1>       <h1>3-­‐col</h1> </div>    </div>    </div>    <div  class="grid_4">    <div  class="grid_2">       <h1>4-­‐col</h1>       <h1>2-­‐col</h1>    </div>    </div> </div>    <div  class="grid_1">       <h1>1-­‐col</h1>    </div>    <div  class="grid_4">       <h1>4-­‐col</h1>    </div> </div>
  • 33. Avoid double-margins using alpha/omega <div  class="grid_4"> <div  class="grid_5"> <div  class="grid_3">    <div  class="grid_4">    <div  class="grid_3">    <h1>3-­‐col</h1>        <h1>4-­‐col</h1>       <h1>3-­‐col</h1> </div>    </div>    </div>    <div  class="grid_4">    <div  class="grid_2">       <h1>4-­‐col</h1>       <h1>2-­‐col</h1>    </div>    </div> </div>    <div  class="grid_1">       <h1>1-­‐col</h1>    </div>    <div  class="grid_4">       <h1>4-­‐col</h1> double margins!!    </div> </div>
  • 34. Avoid double-margins using alpha/omega <div  class="grid_4">    <div  class="grid_4  alpha  omega">        <h1>4-­‐col</h1>    </div>    <div  class="grid_4  alpha  omega">       <h1>4-­‐col</h1>    </div> </div>
  • 35. Avoid double-margins using alpha/omega <div  class="grid_4">    <div  class="grid_4  alpha  omega">        <h1>4-­‐col</h1>    </div>    <div  class="grid_4  alpha  omega">       <h1>4-­‐col</h1>    </div> </div>
  • 36. Avoid double-margins using alpha/omega <div  class="grid_4">    <div  class="grid_4  alpha  omega">        <h1>4-­‐col</h1> alpha:    </div> no left margin    <div  class="grid_4  alpha  omega"> omega:         <h1>4-­‐col</h1> no right margin    </div> </div>
  • 37. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 38. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 39. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 40. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 41. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 42. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 43. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 44. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 45. Avoid double-margins using alpha/omega <div  class="grid_5">    <div  class="grid_1  alpha">    <div  class="grid_3  alpha">      <h1>1-­‐col</h1>      <h1>3-­‐col</h1>    </div>    </div>    <div  class="grid_4  omega">    <div  class="grid_2  omega">      <h1>4-­‐col</h1>      <h1>2-­‐col</h1>    </div>    </div> </div>
  • 47. everything adds up • All row widths should always add up to its container div
  • 48. everything adds up • All row widths should always add up to its container div • For a 12-col grid: <div  class=“grid_3  suffix_1”> <div  class=“grid_7”> <div  class=“grid_1”>
  • 49. everything adds up • All row widths should always add up to its container div • For a 12-col grid: <div  class=“grid_3  suffix_1”> 3+1+7+1=12 <div  class=“grid_7”> <div  class=“grid_1”>
  • 50. everything adds up • All row widths should always add up to its container div • For a 12-col grid: <div  class=“grid_3  suffix_1”> 3+1+7+1=12 <div  class=“grid_7”> <div  class=“grid_1”> • For a 16-col grid: <div  class=“grid_5”> <div  class=“grid_2  prefix_1”> <div  class=“grid_2  prefix_1”> <div  class=“grid_2”> <div  class=“grid_3”>
  • 51. everything adds up • All row widths should always add up to its container div • For a 12-col grid: <div  class=“grid_3  suffix_1”> 3+1+7+1=12 <div  class=“grid_7”> <div  class=“grid_1”> • For a 16-col grid: 5+2+1+ <div  class=“grid_5”> <div  class=“grid_2  prefix_1”> 2+1+2+3 <div  class=“grid_2  prefix_1”> =16 <div  class=“grid_2”> <div  class=“grid_3”>
  • 52. REVIEW 960 • Link your HTML to the 960 CSS files • Choose your container grid type <div  class=“container_12”> • Add widths to your divs using grid <div  class=“grid_5”>   <div  class=“grid_12”> • Use clear divs after each row <div  class=“clear”>
  • 53. REVIEW 960 • Move divs using push and pull <div  class=“grid_5  push_2”> <div  class=“grid_7  pull_1”> • Add white space using prefix and suffix <div  class=“grid_11  prefix_1”> <div  class=“grid_9  suffix_3”> • Remove margins using alpha and omega <div  class=“grid_6  alpha”> <div  class=“grid_3  omega”>
  • 54.
  • 55.
  • 56. Speedtest 01 <!-­‐-­‐  CONTAINER  -­‐-­‐> <div  class="container_16">
  • 57.
  • 58. Speedtest 02 <!-­‐-­‐  SIDEBAR  -­‐-­‐> <div  class="grid_4"> <!-­‐-­‐  ALL  CONTENT  -­‐-­‐> <div  class="grid_12">
  • 59.
  • 61.
  • 62. Speedtest 04 <!-­‐-­‐  PHOTO  -­‐-­‐> <div  class="grid_4  prefix_8  alpha   omega">
  • 63.
  • 64. Speedtest 05 <!-­‐-­‐  SUB1  -­‐-­‐> <div  class="grid_4  alpha"> <!-­‐-­‐  SUB2  -­‐-­‐> <div  class="grid_4"> <!-­‐-­‐  SUB3  -­‐-­‐> <div  class="grid_4  omega">