SlideShare a Scribd company logo
1 of 35
What is grid system?

 ‣The practice of using a grid to guide design and
         page layout is nearly a century old
‣ In the 1910s and 1920s, ornamental design gave
      way to Rationalism and New Objectivity
  ‣ This shift in design was part of a much larger
      movement towards function over form
  ‣ Helvetica typeface and Bauhaus architecture
Grid systems on the web
‣ On the web, grid systems usually take the form
                of CSS frameworks
‣ A framework is a reusable abstraction of code
         wrapped in a well-defined API”1
‣ A collection of tools and shortcuts designed to
    minimize code and make your life easier
CSS frameworks
‣ Apply the principles of software frameworks to
                      web design
‣ They provide standardized rules and shortcuts
                        for:
  ‣ browser resets
  ‣ typography
  ‣ navigation
  ‣ print style
  ‣ and...
Layout
• When applied to web design, grid systems are
  CSS
• frameworks that provides standardized rules
  and
• shortcuts for building a website’s layout
Why use a grid system?
        1) Saves time
       2) Saves money
   3) Reduces frustration
Stop reinventing the wheel
‣ Reduces the amount of CSS and markup you
  need to duplicate each time you start a
  project
‣ No need to refer to old projects to figure out
  how to implement layouts
How do grid systems work?
Columns
‣ Grid systems are built using columns
‣ Columns are a grid system’s smallest unit
  of measurement
‣ Most grid systems contain 12–16 columns
Column width

‣ Page regions (header,content, sidebars, etc.)
  are defined by column width
‣ As in: “The header is eight columns wide”
                 Gutters (margins)
‣ Margins or padding are used to create gutters
  between columns
‣ These gutters provide margins between page
  regions
Lean and versatile CSS
‣ A grid system’s CSS should:
  ‣ Be lean and efficient
  ‣ Be versatile and reusable
  ‣ Ensure consistent behavior across all common
    browsers — even IE6
Wrapping <div> elements
‣ In fixed-width grid systems, the entire layout is
   wrapped inside a single <div> element
‣ <div> elements wrap the page regions and define
   their widths according to the number of columns
   they span
‣ These <div> elements may be nested to create
   regions within regions
Floating <div> elements
‣ The wrapping <div> elements are assigned
  a column width using a CSS class
‣ Because these classes also float the elements,
  they simply fall into place on the page
What can grid systems look like?
Other one
The Mondriaan
How 960.gs works
  12-column version
16-column version
Using both versions simultaneously
‣ You can use 12-column classes inside a 16-
  column
  grid — and vice versa
‣ This is possible because 12 and 16 are both
  multiples of 2 and 4
  ‣ 2 * 6 = 12   ‣ 2 * 8 = 16
  ‣ 4 * 3 = 12   ‣ 4 * 4 = 16
‣ In other words, when you divide the layout
  into halves and quarters, you can use 12- and
  16- column version simultaneously
‣ Watch what happens when you lay one grid on
  top of the other:
CSS and markup
                   Containers
‣ Grids must be wrapped in a container <div>
‣ Containers center the content and define
  which version of the grid will be implemented
Grids
‣ Grids are held inside containers and are
  floated left so they fall into place
  automatically
‣ They also provide 10px margins on the left and
  right
Grid widths
‣ The width of each grid is determined by the
  container that wraps it
‣ For example, a one column grid is either
  60px or 40px depending on whether
  it’s a 12- or 16-column layout
‣ Note that grid width does not increase by 60px
  or 40px each time
‣ Each increase must account for the 20px
  gutter between grids
Putting containers and grids together
Prefixes and suffixes
‣ If you want to leave space between columns,
  use a prefix or suffix class
‣ Prefix classes add padding to the left of a
  column
‣ Suffix classes add padding to the right
Adding a prefix and suffix
Multiple rows
Multiple rows: markup
Alpha and omega fix broken nesting

‣ When nesting grids, use the alpha and omega
  classes to remove the margins
  ‣ alpha removes the left margin. It’s the first nested
    grid.
  ‣ omega removes the right margin. It’s the last
    nested grid.
Push and pull classes
‣ Content-first layout can be achieved in Nine
  Sixty by “pushing” the content grid to the
  right while “pulling” a sidebar to the left
‣ These classes use the same naming convention
  as .grid-X, .prefix-X, and .suffix-X, where X is
  the grid’s width:
  ‣ .push-X and .pull-X
‣ Push and pull values should match the grid
  value of the opposite grid
Before adding push and pull
After adding push and pull
When not to use a grid
‣ Implementing a grid will probably be
  impossible if your site’s layout...
  ‣ uses irregular column sizes
  ‣ has irregular margins or gutters
  ‣ has a width that isn’t divisible by a sane number
Thank you

More Related Content

What's hot

Cubism & le corbusier
Cubism & le corbusier Cubism & le corbusier
Cubism & le corbusier poojayadav3276
 
Substance PBR Materials Workflow for Real-Time Rendering - Unite LA
Substance PBR Materials Workflow for Real-Time Rendering - Unite LASubstance PBR Materials Workflow for Real-Time Rendering - Unite LA
Substance PBR Materials Workflow for Real-Time Rendering - Unite LAUnity Technologies
 
Design elements and principles
Design elements and principlesDesign elements and principles
Design elements and principlesMaged A. Morsy
 
Lecture 1 - Introduction to architecture
Lecture 1 -  Introduction to architectureLecture 1 -  Introduction to architecture
Lecture 1 - Introduction to architectureYosef Yemane
 
Presentation on shape grammar
Presentation on shape grammarPresentation on shape grammar
Presentation on shape grammarGunjan Gangey
 
Sciography in architecture
Sciography in architectureSciography in architecture
Sciography in architectureSahil Pahal
 
Product Design
Product DesignProduct Design
Product DesignJJeanius
 
Design and sketching workshop
Design and sketching workshopDesign and sketching workshop
Design and sketching workshopRakesh Kumar Das
 
theory in antiquity & rennaissance
theory in antiquity & rennaissancetheory in antiquity & rennaissance
theory in antiquity & rennaissancesaiyangoku
 
Spaceframe and prefabrication
Spaceframe and prefabricationSpaceframe and prefabrication
Spaceframe and prefabricationkaiwan1996
 
'33 things I know about Art Direction'
'33 things I know about Art Direction''33 things I know about Art Direction'
'33 things I know about Art Direction'David Bell
 
THEORY: Ching's Notes about Theory of Architecture Terminologies
THEORY: Ching's Notes about Theory of Architecture TerminologiesTHEORY: Ching's Notes about Theory of Architecture Terminologies
THEORY: Ching's Notes about Theory of Architecture TerminologiesArchiEducPH
 
Principles of Design - Graphic Design Theory
Principles of Design - Graphic Design TheoryPrinciples of Design - Graphic Design Theory
Principles of Design - Graphic Design TheoryAbanoub Hanna
 

What's hot (20)

Design principles and architecture
Design principles and architectureDesign principles and architecture
Design principles and architecture
 
Cubism & le corbusier
Cubism & le corbusier Cubism & le corbusier
Cubism & le corbusier
 
Substance PBR Materials Workflow for Real-Time Rendering - Unite LA
Substance PBR Materials Workflow for Real-Time Rendering - Unite LASubstance PBR Materials Workflow for Real-Time Rendering - Unite LA
Substance PBR Materials Workflow for Real-Time Rendering - Unite LA
 
Design elements and principles
Design elements and principlesDesign elements and principles
Design elements and principles
 
Lecture 1 - Introduction to architecture
Lecture 1 -  Introduction to architectureLecture 1 -  Introduction to architecture
Lecture 1 - Introduction to architecture
 
Presentation on shape grammar
Presentation on shape grammarPresentation on shape grammar
Presentation on shape grammar
 
Principles Of Design 1
Principles Of  Design 1Principles Of  Design 1
Principles Of Design 1
 
Sciography in architecture
Sciography in architectureSciography in architecture
Sciography in architecture
 
Acrylic plastic sheets
Acrylic plastic sheetsAcrylic plastic sheets
Acrylic plastic sheets
 
Bauhaus
BauhausBauhaus
Bauhaus
 
Product Design
Product DesignProduct Design
Product Design
 
Design and sketching workshop
Design and sketching workshopDesign and sketching workshop
Design and sketching workshop
 
theory in antiquity & rennaissance
theory in antiquity & rennaissancetheory in antiquity & rennaissance
theory in antiquity & rennaissance
 
Spaceframe and prefabrication
Spaceframe and prefabricationSpaceframe and prefabrication
Spaceframe and prefabrication
 
Design Fundamentals
Design FundamentalsDesign Fundamentals
Design Fundamentals
 
'33 things I know about Art Direction'
'33 things I know about Art Direction''33 things I know about Art Direction'
'33 things I know about Art Direction'
 
THEORY: Ching's Notes about Theory of Architecture Terminologies
THEORY: Ching's Notes about Theory of Architecture TerminologiesTHEORY: Ching's Notes about Theory of Architecture Terminologies
THEORY: Ching's Notes about Theory of Architecture Terminologies
 
Principles of Design - Graphic Design Theory
Principles of Design - Graphic Design TheoryPrinciples of Design - Graphic Design Theory
Principles of Design - Graphic Design Theory
 
Colour And Architecture
Colour And ArchitectureColour And Architecture
Colour And Architecture
 
construction of SCALES
construction  of  SCALES construction  of  SCALES
construction of SCALES
 

Similar to What is grid system

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 systemFour Kitchens
 
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)Four Kitchens
 
Accelerated grid theming using NineSixty (DrupalCamp LA 2011)
Accelerated grid theming using NineSixty (DrupalCamp LA 2011)Accelerated grid theming using NineSixty (DrupalCamp LA 2011)
Accelerated grid theming using NineSixty (DrupalCamp LA 2011)Four Kitchens
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)Four Kitchens
 
Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)
Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)
Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)Four Kitchens
 
Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)Four Kitchens
 
Accelerated Grid Theming
Accelerated Grid ThemingAccelerated Grid Theming
Accelerated Grid ThemingNathan Smith
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)Four Kitchens
 
Grid system- cbil360.com
Grid system- cbil360.comGrid system- cbil360.com
Grid system- cbil360.comPhillip Turner
 
The Future of CSS Layout
The Future of CSS LayoutThe Future of CSS Layout
The Future of CSS LayoutZoe Gillenwater
 
2D Page Layout
2D Page Layout2D Page Layout
2D Page LayoutUnfold UI
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksRandy Connolly
 
Render Conf: Start using CSS Grid Layout Today
Render Conf: Start using CSS Grid Layout TodayRender Conf: Start using CSS Grid Layout Today
Render Conf: Start using CSS Grid Layout TodayRachel Andrew
 
04 CSS #burningkeyboards
04 CSS #burningkeyboards04 CSS #burningkeyboards
04 CSS #burningkeyboardsDenis Ristic
 
CSS3 for web designer - How to design a visually appealing website
CSS3 for web designer - How to design a visually appealing websiteCSS3 for web designer - How to design a visually appealing website
CSS3 for web designer - How to design a visually appealing websiteMario Hernandez
 
Css Grid Layout - A Short Introduction - Part 1
Css Grid Layout - A Short Introduction - Part 1Css Grid Layout - A Short Introduction - Part 1
Css Grid Layout - A Short Introduction - Part 1Adam Michalowski
 
Building Responsive Layouts
Building Responsive LayoutsBuilding Responsive Layouts
Building Responsive LayoutsZoe Gillenwater
 
MW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationMW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationCharlie Moad
 

Similar to What is grid system (20)

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
 
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
 
Accelerated grid theming using NineSixty (DrupalCamp LA 2011)
Accelerated grid theming using NineSixty (DrupalCamp LA 2011)Accelerated grid theming using NineSixty (DrupalCamp LA 2011)
Accelerated grid theming using NineSixty (DrupalCamp LA 2011)
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
 
Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)
Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)
Accelerated grid theming using NineSixty (Dallas Drupal Days 2011)
 
Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)
 
Accelerated Grid Theming
Accelerated Grid ThemingAccelerated Grid Theming
Accelerated Grid Theming
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
 
Grid system- cbil360.com
Grid system- cbil360.comGrid system- cbil360.com
Grid system- cbil360.com
 
The Future of CSS Layout
The Future of CSS LayoutThe Future of CSS Layout
The Future of CSS Layout
 
Grid system introduction
Grid system introductionGrid system introduction
Grid system introduction
 
2D Page Layout
2D Page Layout2D Page Layout
2D Page Layout
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS Frameworks
 
Render Conf: Start using CSS Grid Layout Today
Render Conf: Start using CSS Grid Layout TodayRender Conf: Start using CSS Grid Layout Today
Render Conf: Start using CSS Grid Layout Today
 
04 CSS #burningkeyboards
04 CSS #burningkeyboards04 CSS #burningkeyboards
04 CSS #burningkeyboards
 
CSS3 for web designer - How to design a visually appealing website
CSS3 for web designer - How to design a visually appealing websiteCSS3 for web designer - How to design a visually appealing website
CSS3 for web designer - How to design a visually appealing website
 
Css Grid Layout - A Short Introduction - Part 1
Css Grid Layout - A Short Introduction - Part 1Css Grid Layout - A Short Introduction - Part 1
Css Grid Layout - A Short Introduction - Part 1
 
Building Responsive Layouts
Building Responsive LayoutsBuilding Responsive Layouts
Building Responsive Layouts
 
MW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationMW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentation
 
RWD
RWDRWD
RWD
 

Recently uploaded

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

What is grid system

  • 1. What is grid system? ‣The practice of using a grid to guide design and page layout is nearly a century old ‣ In the 1910s and 1920s, ornamental design gave way to Rationalism and New Objectivity ‣ This shift in design was part of a much larger movement towards function over form ‣ Helvetica typeface and Bauhaus architecture
  • 2. Grid systems on the web ‣ On the web, grid systems usually take the form of CSS frameworks ‣ A framework is a reusable abstraction of code wrapped in a well-defined API”1 ‣ A collection of tools and shortcuts designed to minimize code and make your life easier
  • 3. CSS frameworks ‣ Apply the principles of software frameworks to web design ‣ They provide standardized rules and shortcuts for: ‣ browser resets ‣ typography ‣ navigation ‣ print style ‣ and...
  • 4. Layout • When applied to web design, grid systems are CSS • frameworks that provides standardized rules and • shortcuts for building a website’s layout
  • 5. Why use a grid system? 1) Saves time 2) Saves money 3) Reduces frustration
  • 6. Stop reinventing the wheel ‣ Reduces the amount of CSS and markup you need to duplicate each time you start a project ‣ No need to refer to old projects to figure out how to implement layouts
  • 7. How do grid systems work? Columns ‣ Grid systems are built using columns ‣ Columns are a grid system’s smallest unit of measurement ‣ Most grid systems contain 12–16 columns
  • 8. Column width ‣ Page regions (header,content, sidebars, etc.) are defined by column width ‣ As in: “The header is eight columns wide” Gutters (margins) ‣ Margins or padding are used to create gutters between columns ‣ These gutters provide margins between page regions
  • 9. Lean and versatile CSS ‣ A grid system’s CSS should: ‣ Be lean and efficient ‣ Be versatile and reusable ‣ Ensure consistent behavior across all common browsers — even IE6
  • 10. Wrapping <div> elements ‣ In fixed-width grid systems, the entire layout is wrapped inside a single <div> element ‣ <div> elements wrap the page regions and define their widths according to the number of columns they span ‣ These <div> elements may be nested to create regions within regions
  • 11. Floating <div> elements ‣ The wrapping <div> elements are assigned a column width using a CSS class ‣ Because these classes also float the elements, they simply fall into place on the page
  • 12. What can grid systems look like?
  • 15. How 960.gs works 12-column version
  • 17. Using both versions simultaneously ‣ You can use 12-column classes inside a 16- column grid — and vice versa ‣ This is possible because 12 and 16 are both multiples of 2 and 4 ‣ 2 * 6 = 12 ‣ 2 * 8 = 16 ‣ 4 * 3 = 12 ‣ 4 * 4 = 16
  • 18. ‣ In other words, when you divide the layout into halves and quarters, you can use 12- and 16- column version simultaneously ‣ Watch what happens when you lay one grid on top of the other:
  • 19. CSS and markup Containers ‣ Grids must be wrapped in a container <div> ‣ Containers center the content and define which version of the grid will be implemented
  • 20. Grids ‣ Grids are held inside containers and are floated left so they fall into place automatically ‣ They also provide 10px margins on the left and right
  • 21. Grid widths ‣ The width of each grid is determined by the container that wraps it ‣ For example, a one column grid is either 60px or 40px depending on whether it’s a 12- or 16-column layout
  • 22. ‣ Note that grid width does not increase by 60px or 40px each time ‣ Each increase must account for the 20px gutter between grids
  • 23. Putting containers and grids together
  • 24. Prefixes and suffixes ‣ If you want to leave space between columns, use a prefix or suffix class ‣ Prefix classes add padding to the left of a column ‣ Suffix classes add padding to the right
  • 25. Adding a prefix and suffix
  • 28. Alpha and omega fix broken nesting ‣ When nesting grids, use the alpha and omega classes to remove the margins ‣ alpha removes the left margin. It’s the first nested grid. ‣ omega removes the right margin. It’s the last nested grid.
  • 29.
  • 30. Push and pull classes ‣ Content-first layout can be achieved in Nine Sixty by “pushing” the content grid to the right while “pulling” a sidebar to the left ‣ These classes use the same naming convention as .grid-X, .prefix-X, and .suffix-X, where X is the grid’s width: ‣ .push-X and .pull-X
  • 31. ‣ Push and pull values should match the grid value of the opposite grid
  • 32. Before adding push and pull
  • 33. After adding push and pull
  • 34. When not to use a grid ‣ Implementing a grid will probably be impossible if your site’s layout... ‣ uses irregular column sizes ‣ has irregular margins or gutters ‣ has a width that isn’t divisible by a sane number