SlideShare uma empresa Scribd logo
1 de 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>

Mais conteúdo relacionado

Semelhante a The 960 Grid System

Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS GridKara Luton
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksRandy Connolly
 
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...Jeremy Fuksa
 
WEB DESIGNING AND DEVELOPMEENT.pptx
WEB DESIGNING AND DEVELOPMEENT.pptxWEB DESIGNING AND DEVELOPMEENT.pptx
WEB DESIGNING AND DEVELOPMEENT.pptxNamanGupta785817
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS GridKara Luton
 
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 Rachel Andrew
 
AngularJS first steps
AngularJS first stepsAngularJS first steps
AngularJS first stepsseges
 
Practical progressive enhancement
Practical progressive enhancementPractical progressive enhancement
Practical progressive enhancementGraham Bird
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4imdurgesh
 
Future-proof styling in Drupal (8)
Future-proof styling in Drupal (8)Future-proof styling in Drupal (8)
Future-proof styling in Drupal (8)Hajas Tamás
 
Css for Development
Css for DevelopmentCss for Development
Css for Developmenttsengsite
 

Semelhante a 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
 

Mais 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
 

Último

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 

Último (20)

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 

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>