SlideShare a Scribd company logo
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

Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 

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>