SlideShare a Scribd company logo
1 of 19
CSS
IS
AWESOME
960 Grid System
 Ford Local Sites at UC Berkeley
What is the grid system

•   A CSS library that makes it easy to design.

•   Automatically sets margins, widths, spacing, position, and
    everything else.

•   Encourages clean design with good alignment.

•   Aims to standardize webpage design.
We are a 12 column grid
How grids work
container_12




A container
You create boxes
class= “grid_8”               class= “grid_4”




class= “grid_4”        class= “grid_4”   class= “grid_4”




         You create boxes
class=     class=
“grid_2”   “grid_2”   class= “grid_4”         class= “grid_4”
                                                                  =12


                                                        class=
class= “grid_4”             class= “grid_6”            “grid_2”
                                                                  =12


   What are the classes?
class= “grid_8”
                                         class= “grid_4”




class= “grid_4”        class= “grid_4”   class= “grid_4”




      Watch your heights
class= “grid_8”
                                         class= “grid_4”




class= “grid_4”        class= “grid_4”   class= “grid_4”




                                                           class=“clear”

          Add a “clear” fix
<div	
  class=“container_12”>
     <div	
  class=“grid_6”>
          <img	
  src=“wp-­‐content/uploads/2011/02/some.jpg”	
  />
     </div>
     <div	
  class=“grid_6”>
          <p>About	
  this	
  project:	
  This	
  is	
  us</p>
     </div>
     <div	
  class=“grid_12”>
          <object	
  id=“Flash	
  embed”><param	
  name=“AllowScriptAccess”></
          object>
     </div>
     <div	
  class=“clear”></div>
     <div	
  class=	
  “grid_8”>
          <p>Text	
  story</p>
     </div>
     <div	
  class=	
  “grid_4”>
          <p>sidebar</p>
     </div>
</div>
What the code looks like
<div	
  class=“grid_6”>
     <img	
  src=“wp-­‐content/uploads/2011/02/some.jpg”	
  />
</div>
<div	
  class=“grid_6”>
     <p>About	
  this	
  project:	
  This	
  is	
  us</p>
</div>
<div	
  class=“clear”></div>
<div	
  class=“grid_12”>
     <object	
  id=“Flash	
  embed”><param	
  name=“AllowScriptAccess”></object>
</div>
<div	
  class=	
  “grid_8”>
     <p>Text	
  story</p>
</div>
<div	
  class=	
  “grid_4”>
     <p>sidebar</p>
</div>
<div	
  class=“clear”></div>
What the code looks like
<div	
  class=“grid_6”>
     <img	
  src=“wp-­‐content/uploads/2011/02/some.jpg”	
  />
</div>
<div	
  class=“grid_6”>
     <p>About	
  this	
  project:	
  This	
  is	
  us</p>
</div>
<div	
  class=“clear”></div>
<div	
  class=“grid_12”>
     <object	
  id=“Flash	
  embed”><param	
  name=“AllowScriptAccess”></object>
</div>
<div	
  class=	
  “grid_8”>
     <p>Text	
  story</p>
</div>
<div	
  class=	
  “grid_4”>
     <p>sidebar</p>
</div>
<div	
  class=“clear”></div>
Nested Grids


grid_8     grid_4
Nested Grids
grid_3 alpha grid_2 grid_3 omega


      grid_8 alpha omega           grid_4

         grid_8
Nested Grids
grid_4 alpha    grid_4 omega


     grid_8 alpha omega        grid_4

         grid_8
Nested Grids

<div	
  class=“grid_8”>
     <div	
  class=“grid_4	
  alpha”>
     </div>
     <div	
  class=	
  “grid_4	
  omega”>
     </div>
     <div	
  class=	
  “grid_8	
  alpha	
  omega”>
     </div>
</div>

More Related Content

Similar to The 960 Grid System

Css for Development
Css for DevelopmentCss for Development
Css for Development
tsengsite
 

Similar to The 960 Grid System (20)

Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS Frameworks
 
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...
 
WEB DESIGNING AND DEVELOPMEENT.pptx
WEB DESIGNING AND DEVELOPMEENT.pptxWEB DESIGNING AND DEVELOPMEENT.pptx
WEB DESIGNING AND DEVELOPMEENT.pptx
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
 
Class15
Class15Class15
Class15
 
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
 
AngularJS first steps
AngularJS first stepsAngularJS first steps
AngularJS first steps
 
World of CSS Grid
World of CSS GridWorld of CSS Grid
World of CSS Grid
 
Practical progressive enhancement
Practical progressive enhancementPractical progressive enhancement
Practical progressive enhancement
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
 
Django at the Disco
Django at the DiscoDjango at the Disco
Django at the Disco
 
Django at the Disco
Django at the DiscoDjango at the Disco
Django at the Disco
 
Django at the Disco
Django at the DiscoDjango at the Disco
Django at the Disco
 
Django at the Disco
Django at the DiscoDjango at the Disco
Django at the Disco
 
Django at the Disco
Django at the DiscoDjango at the Disco
Django at the Disco
 
Future-proof styling in Drupal (8)
Future-proof styling in Drupal (8)Future-proof styling in Drupal (8)
Future-proof styling in Drupal (8)
 
Intro to Bootstrap
Intro to BootstrapIntro to Bootstrap
Intro to Bootstrap
 
Material design
Material designMaterial design
Material design
 
Css for Development
Css for DevelopmentCss for Development
Css for Development
 

More from UC Berkeley Graduate School of Journalism (10)

Jquery plugins
Jquery pluginsJquery plugins
Jquery plugins
 
Inline, Block and Positioning in CSS
Inline, Block and Positioning in CSSInline, Block and Positioning in CSS
Inline, Block and Positioning in CSS
 
Jquery News Packages
Jquery News PackagesJquery News Packages
Jquery News Packages
 
HTML News Packages Lesson
HTML News Packages LessonHTML News Packages Lesson
HTML News Packages Lesson
 
Quiz
QuizQuiz
Quiz
 
Floats
FloatsFloats
Floats
 
CSS Tutorial
CSS TutorialCSS Tutorial
CSS Tutorial
 
Understanding DIVs
Understanding DIVsUnderstanding DIVs
Understanding DIVs
 
Intro to CSS
Intro to CSSIntro to CSS
Intro to CSS
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
Alexander Litvinenko
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
Krashi Coaching
 

Recently uploaded (20)

II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 

The 960 Grid System

  • 2. 960 Grid System Ford Local Sites at UC Berkeley
  • 3. What is the grid system • A CSS library that makes it easy to design. • Automatically sets margins, widths, spacing, position, and everything else. • Encourages clean design with good alignment. • Aims to standardize webpage design.
  • 4.
  • 5. We are a 12 column grid
  • 9. class= “grid_8” class= “grid_4” class= “grid_4” class= “grid_4” class= “grid_4” You create boxes
  • 10. class= class= “grid_2” “grid_2” class= “grid_4” class= “grid_4” =12 class= class= “grid_4” class= “grid_6” “grid_2” =12 What are the classes?
  • 11. class= “grid_8” class= “grid_4” class= “grid_4” class= “grid_4” class= “grid_4” Watch your heights
  • 12. class= “grid_8” class= “grid_4” class= “grid_4” class= “grid_4” class= “grid_4” class=“clear” Add a “clear” fix
  • 13. <div  class=“container_12”> <div  class=“grid_6”> <img  src=“wp-­‐content/uploads/2011/02/some.jpg”  /> </div> <div  class=“grid_6”> <p>About  this  project:  This  is  us</p> </div> <div  class=“grid_12”> <object  id=“Flash  embed”><param  name=“AllowScriptAccess”></ object> </div> <div  class=“clear”></div> <div  class=  “grid_8”> <p>Text  story</p> </div> <div  class=  “grid_4”> <p>sidebar</p> </div> </div>
  • 14. What the code looks like <div  class=“grid_6”> <img  src=“wp-­‐content/uploads/2011/02/some.jpg”  /> </div> <div  class=“grid_6”> <p>About  this  project:  This  is  us</p> </div> <div  class=“clear”></div> <div  class=“grid_12”> <object  id=“Flash  embed”><param  name=“AllowScriptAccess”></object> </div> <div  class=  “grid_8”> <p>Text  story</p> </div> <div  class=  “grid_4”> <p>sidebar</p> </div> <div  class=“clear”></div>
  • 15. What the code looks like <div  class=“grid_6”> <img  src=“wp-­‐content/uploads/2011/02/some.jpg”  /> </div> <div  class=“grid_6”> <p>About  this  project:  This  is  us</p> </div> <div  class=“clear”></div> <div  class=“grid_12”> <object  id=“Flash  embed”><param  name=“AllowScriptAccess”></object> </div> <div  class=  “grid_8”> <p>Text  story</p> </div> <div  class=  “grid_4”> <p>sidebar</p> </div> <div  class=“clear”></div>
  • 17. Nested Grids grid_3 alpha grid_2 grid_3 omega grid_8 alpha omega grid_4 grid_8
  • 18. Nested Grids grid_4 alpha grid_4 omega grid_8 alpha omega grid_4 grid_8
  • 19. Nested Grids <div  class=“grid_8”> <div  class=“grid_4  alpha”> </div> <div  class=  “grid_4  omega”> </div> <div  class=  “grid_8  alpha  omega”> </div> </div>