SlideShare a Scribd company logo
anthony@puresign.be
                      Grids & Panels
    @mylittletony     Drupal User Group Gent 15/06/2011
Overview
           ‣   What is a grid?
           ‣   Why should I use it?
           ‣   Silver Bullet?
           ‣   960.gs
           ‣   Questions
What is a grid?
Not this grid.
What?
        ‣   Visual ordering system
            -   Columnar grid
                 -   most important for web
            -   Baseline grid
                 -   type, vertical rhytm
Examples   Subtraction.com
Examples   Mark Boulton Design
Examples   De Standaard
Examples   Drupal.org
Examples   Drupal.org
Components
             ‣   Columns
                 -   960.gs has 12/16/24 columns
             ‣   Regions
                 -   ≈ Drupal regions
             ‣   Gutters
                 -   margin between columns
                 -   remove when combining columns
Components



Column

Region

Gutter
Components



Column

Region

Gutter
Components



Column

Region

Gutter
Components



Column

Region

Gutter
Components
             ‣   Baseline grid
                 -   invisible line letterforms
             ‣   Fields
                 -   horizontal division
                 -   visual placement helper on y-axis
                 -   based on baseline grid (!)
                 -   calculation
                      -   print: divide by number
                      -   web: use golden ratio
Components



Baseline grid

Fields
Components



Baseline grid

Fields
Components



Baseline grid

Fields
Why should I use it?
Order.
Disorder.
Why?
       ‣   Order and Structure
           -   If a user feels the grid, he will use it.
       ‣   Consistence
           -   Predictable content placement
           -   Make collaboration easier
       ‣   Problem solving
           -   Framework for designers
           -   Print ≠ web
       ‣   Creativity
Silver Bullet?
Photo by Jason Rhode CC license




                        Toolbox Silver Bullet?
Photo by Jason Rhode CC license




                         “The grid system is an aid, not a guarantee.
                         It permits a number of possible uses and each
                         designer can look for a solution appropriate to his
                         personal style. But one must learn how to use the
                         grid; it is an art that requires practice.”
                         - Josef Müller-Brockmann




                        Toolbox Silver Bullet?
960.gs
960.gs
DIY
      ‣   Making your own grid
          -   grids.heroku.com
          -   problem.se/labs/gridcalc/
          -   gridulator
          -   LESS Css template
          -   ...
960.gs
         ‣   Widely used
         ‣   Rapid prototyping / production
         ‣   Fixed width
             -   960px full, 940px usable
             -   12 / 16 / 24 columns


         ‣   in Drupal
             -   ninesixty + subtheme
             -   starter theme that implements 960
             -   add 960 css to your own theme
12 columns
             ‣   column = 60px
             ‣   gutter = 20px
                 -   960px full, 940px usable
Container
            ‣   wrap grids in div
                -   centers content
                -   defines grid (12 / 16 / 24 columns)



            .container_12{
              width:960px;
              margin:0 auto;
            }
Grids
        ‣   sit in container
            -   take up horizontal space
            -   floated next to eachother


        .container_12 .grid_3{
          width:220px;
        }

        3 x 60px     = 180 px        columns
        2 x (2x10px) = 4O px         gutters
                     --------
                       22O px
Grids




        <div class=”container_12 clearfix”>
          <div class=”grid_3”>
            <p>grid_3 - 220px</p>
          </div>
        </div> <!-- end container -->
Whitespace
             ‣   give elements padding with grid units
                 -   prefix (left) / suffix (right) classes




             .container_12 .prefix_3{
               padding-left:240px;
             }

             .container_12 .suffix_3{
               padding-right:240px;
             }
Whitespace




             <div class=”container_12 clearfix”>
               <div class=”grid_3 suffix_3”>
                 <p>grid_3 - 220px</p>
               </div>
             </div> <!-- end container -->
Multiple rows
                ‣   no new container needed
                    -   gridlayout already defined




                <div class=”container_12”>
                  <div class=”grid_12”>
                    <!-- row 1 -->
                  </div>
                  <div class=”grid_4”>
                    <!-- row 2 -->
                  </div>
                </div> <!-- end container -->
Nesting grids
                ‣   outer gutters collapse when nesting
                    -   alpha / omega classes
                    -   removes margins left / right


                .alpha{
                  margin-left:0px;
                }

                .omega{
                  margin-right:0px;
                }
Nesting grids




                <div class=”container_12”>
                  <div class=”grid_12”>
                    <div class=”grid_6 alpha”>
                       ...
                    </div>
                    <div class=”grid_6 omega”>
                       ...
                    </div>
                  </div>
                </div> <!-- end container -->
Jobs
anthony@puresign.be
    @mylittletony     Questions?

More Related Content

Similar to DUG: Grids & Panels

Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS Frameworks
Randy Connolly
 
Class15
Class15Class15
Class15
Jiyeon Lee
 
Drupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid systemDrupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid system
Four Kitchens
 
Bootstrap 3 training
Bootstrap 3 trainingBootstrap 3 training
Bootstrap 3 training
Vison Sunon
 
World of CSS Grid
World of CSS GridWorld of CSS Grid
World of CSS Grid
Elad Shechter
 
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
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
Kara Luton
 
MW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationMW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentation
Charlie Moad
 
New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)
Igalia
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
Tim Hettler
 
View Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & FriendsView Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & Friends
Rachel Andrew
 
Bootstarp 3
Bootstarp 3Bootstarp 3
Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17
Rachel Andrew
 
What I discovered about layout vis CSS Grid
What I discovered about layout vis CSS GridWhat I discovered about layout vis CSS Grid
What I discovered about layout vis CSS Grid
Rachel Andrew
 
Status of CSS Grid Layout Implementation (BlinkOn 6)
Status of CSS Grid Layout Implementation (BlinkOn 6)Status of CSS Grid Layout Implementation (BlinkOn 6)
Status of CSS Grid Layout Implementation (BlinkOn 6)
Igalia
 
Solving Layout Problems with CSS Grid & Friends - NordicJS
Solving Layout Problems with CSS Grid & Friends - NordicJSSolving Layout Problems with CSS Grid & Friends - NordicJS
Solving Layout Problems with CSS Grid & Friends - NordicJS
Rachel Andrew
 
404.ie: Solving Layout Problems with CSS Grid & Friends
404.ie: Solving Layout Problems with CSS Grid & Friends404.ie: Solving Layout Problems with CSS Grid & Friends
404.ie: Solving Layout Problems with CSS Grid & Friends
Rachel Andrew
 
960 grid psd
960 grid psd960 grid psd
960 grid psd
Raju Nag
 
Solving Layout Problems With CSS Grid and Friends
Solving Layout Problems With CSS Grid and FriendsSolving Layout Problems With CSS Grid and Friends
Solving Layout Problems With CSS Grid and Friends
FITC
 
Solving Layout Problems with CSS Grid & Friends - WEBU17
Solving Layout Problems with CSS Grid & Friends - WEBU17Solving Layout Problems with CSS Grid & Friends - WEBU17
Solving Layout Problems with CSS Grid & Friends - WEBU17
Rachel Andrew
 

Similar to DUG: Grids & Panels (20)

Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS Frameworks
 
Class15
Class15Class15
Class15
 
Drupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid systemDrupal theming using the 960.gs grid system
Drupal theming using the 960.gs grid system
 
Bootstrap 3 training
Bootstrap 3 trainingBootstrap 3 training
Bootstrap 3 training
 
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
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
 
MW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationMW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentation
 
New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
View Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & FriendsView Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & Friends
 
Bootstarp 3
Bootstarp 3Bootstarp 3
Bootstarp 3
 
Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17
 
What I discovered about layout vis CSS Grid
What I discovered about layout vis CSS GridWhat I discovered about layout vis CSS Grid
What I discovered about layout vis CSS Grid
 
Status of CSS Grid Layout Implementation (BlinkOn 6)
Status of CSS Grid Layout Implementation (BlinkOn 6)Status of CSS Grid Layout Implementation (BlinkOn 6)
Status of CSS Grid Layout Implementation (BlinkOn 6)
 
Solving Layout Problems with CSS Grid & Friends - NordicJS
Solving Layout Problems with CSS Grid & Friends - NordicJSSolving Layout Problems with CSS Grid & Friends - NordicJS
Solving Layout Problems with CSS Grid & Friends - NordicJS
 
404.ie: Solving Layout Problems with CSS Grid & Friends
404.ie: Solving Layout Problems with CSS Grid & Friends404.ie: Solving Layout Problems with CSS Grid & Friends
404.ie: Solving Layout Problems with CSS Grid & Friends
 
960 grid psd
960 grid psd960 grid psd
960 grid psd
 
Solving Layout Problems With CSS Grid and Friends
Solving Layout Problems With CSS Grid and FriendsSolving Layout Problems With CSS Grid and Friends
Solving Layout Problems With CSS Grid and Friends
 
Solving Layout Problems with CSS Grid & Friends - WEBU17
Solving Layout Problems with CSS Grid & Friends - WEBU17Solving Layout Problems with CSS Grid & Friends - WEBU17
Solving Layout Problems with CSS Grid & Friends - WEBU17
 

Recently uploaded

GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 

Recently uploaded (20)

GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 

DUG: Grids & Panels

  • 1. anthony@puresign.be Grids & Panels @mylittletony Drupal User Group Gent 15/06/2011
  • 2. Overview ‣ What is a grid? ‣ Why should I use it? ‣ Silver Bullet? ‣ 960.gs ‣ Questions
  • 3. What is a grid?
  • 5. What? ‣ Visual ordering system - Columnar grid - most important for web - Baseline grid - type, vertical rhytm
  • 6. Examples Subtraction.com
  • 7. Examples Mark Boulton Design
  • 8. Examples De Standaard
  • 9. Examples Drupal.org
  • 10. Examples Drupal.org
  • 11. Components ‣ Columns - 960.gs has 12/16/24 columns ‣ Regions - ≈ Drupal regions ‣ Gutters - margin between columns - remove when combining columns
  • 16. Components ‣ Baseline grid - invisible line letterforms ‣ Fields - horizontal division - visual placement helper on y-axis - based on baseline grid (!) - calculation - print: divide by number - web: use golden ratio
  • 20. Why should I use it?
  • 23. Why? ‣ Order and Structure - If a user feels the grid, he will use it. ‣ Consistence - Predictable content placement - Make collaboration easier ‣ Problem solving - Framework for designers - Print ≠ web ‣ Creativity
  • 25. Photo by Jason Rhode CC license Toolbox Silver Bullet?
  • 26. Photo by Jason Rhode CC license “The grid system is an aid, not a guarantee. It permits a number of possible uses and each designer can look for a solution appropriate to his personal style. But one must learn how to use the grid; it is an art that requires practice.” - Josef Müller-Brockmann Toolbox Silver Bullet?
  • 29. DIY ‣ Making your own grid - grids.heroku.com - problem.se/labs/gridcalc/ - gridulator - LESS Css template - ...
  • 30. 960.gs ‣ Widely used ‣ Rapid prototyping / production ‣ Fixed width - 960px full, 940px usable - 12 / 16 / 24 columns ‣ in Drupal - ninesixty + subtheme - starter theme that implements 960 - add 960 css to your own theme
  • 31. 12 columns ‣ column = 60px ‣ gutter = 20px - 960px full, 940px usable
  • 32. Container ‣ wrap grids in div - centers content - defines grid (12 / 16 / 24 columns) .container_12{ width:960px; margin:0 auto; }
  • 33. Grids ‣ sit in container - take up horizontal space - floated next to eachother .container_12 .grid_3{ width:220px; } 3 x 60px = 180 px columns 2 x (2x10px) = 4O px gutters -------- 22O px
  • 34. Grids <div class=”container_12 clearfix”> <div class=”grid_3”> <p>grid_3 - 220px</p> </div> </div> <!-- end container -->
  • 35. Whitespace ‣ give elements padding with grid units - prefix (left) / suffix (right) classes .container_12 .prefix_3{ padding-left:240px; } .container_12 .suffix_3{ padding-right:240px; }
  • 36. Whitespace <div class=”container_12 clearfix”> <div class=”grid_3 suffix_3”> <p>grid_3 - 220px</p> </div> </div> <!-- end container -->
  • 37. Multiple rows ‣ no new container needed - gridlayout already defined <div class=”container_12”> <div class=”grid_12”> <!-- row 1 --> </div> <div class=”grid_4”> <!-- row 2 --> </div> </div> <!-- end container -->
  • 38. Nesting grids ‣ outer gutters collapse when nesting - alpha / omega classes - removes margins left / right .alpha{ margin-left:0px; } .omega{ margin-right:0px; }
  • 39. Nesting grids <div class=”container_12”> <div class=”grid_12”> <div class=”grid_6 alpha”> ... </div> <div class=”grid_6 omega”> ... </div> </div> </div> <!-- end container -->
  • 40. Jobs
  • 41. anthony@puresign.be @mylittletony Questions?