SlideShare une entreprise Scribd logo
1  sur  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>

Contenu connexe

Similaire à The 960 Grid System

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

Similaire à 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
 

Plus de 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
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

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>