SlideShare una empresa de Scribd logo
1 de 41
Descargar para leer sin conexión
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?

Más contenido relacionado

Similar a DUG: Grids & Panels

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
 
960 grid psd
960 grid psd960 grid psd
960 grid psd
Raju Nag
 

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

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

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?