SlideShare a Scribd company logo
2
Most read
8
Most read
10
Most read
CSS GRID
LAYOUT
Brave New Web Design
A BRIEF HISTORY IN WEBPAGE LAYOUT
First Webpage 1992
A BRIEF HISTORY IN WEBPAGE LAYOUT
Yahoo! Website 2002Yahoo! Website 1996
A BRIEF HISTORY IN WEBPAGE LAYOUT
Yahoo! Website 2017Yahoo! Website 2009
CSS GRID LAYOUT DEFINITION
A grid is an intersecting set of horizontal and vertical lines. One
set defining rows and one set defining columns. Elements can be
placed onto the grid, respecting these column and row lines.
CSS GRID LAYOUT LEVEL 1 SPECIFICATION
★ Two-dimensional grid-based layout system.
★ Fixed track sizes (px) and/or flexible track sizes (%, fr).
★ Precise item placement through line numbers, names or areas. 

Algorithm for non-defined items included.
★ Automated creation of additional tracks to hold content e.g. 

add as many rows as will fit in container.
★ Alignment control of grid and grid elements.
★ Overlapping content control through z-index.
CSS GRID LAYOUT SUPPORT
Source: caniuse.com 2.08.2017
CSS GRID LAYOUT TERMINOLOGY
★ Grid Container > Element to which display:grid; is applied.
★ Grid Item > Direct descendants of the grid container.
★ Grid Line > Dividing lines of the grid structure. Horizontal (row)
and vertical (column) lines.
★ Grid Track > The space between two adjacent grid lines.
★ Grid Cell > Single unit. Space between 2 adjacent column and
row grid lines.
★ Grid Area > Total space surrounded by 4 grid lines. Can consists
of a numerous grid cells.
CSS GRID LAYOUT TERMINOLOGY
CSS GRID CONTAINER PROPERTIES
★ display: grid | inline-grid | subgrid
★ grid-template-columns: <track-size> ... | <line-name> <track-
size> …
★ grid-template-rows <track-size> ... | <line-name> <track-
size> …
★ grid-column-gap | grid-row-gap <line-size>
★ grid: none | <grid-template-rows> / <grid-template-columns> |
<grid-auto-flow> [<grid-auto-rows> [/ <grid-auto-columns>]]
★ justify-items | align-items: start | end | center | stretch
★ justify-content | align-content: start | end | center | stretch
CSS GRID FUNCTIONS
★ MinMax()

grid-auto-rows

with a minimum height (px) but expanding with content (auto).
★ Auto-placement and order 

grid-auto-flow: column | row | dense

By default items are laid out by row.
★ Flexible filling of tracks 

auto-fit | auto-fill

Use in combination with minmax() to achieve flexible filling of
tracks on grid in viewport.
★ and many more …
CSS GRID ELEMENT PROPERTIES
★ grid-column-start, grid-column-end, 

grid-row-start, grid-row-end: <number> | <name> | 

span <number> | span <name> | auto
★ grid-column | grid-row: <start-line> / <end-line>
★ grid-area: <name> | <row-start> / <column-start> / <row-
end> / <column-end>
★ justify-self: start | end | center | stretch
★ align-self: start | end | center | stretch
CSS GRID LAYOUT RESOURCES
★ Great work by Rachel Andrew: https://gridbyexample.com/
★ Rachel Andrew’s Website & Blog: https://rachelandrew.co.uk/
★ Rachel Andrew’s Weekly Newsletter: http://csslayout.news/
★ Jen Simmons Work on CSS: http://jensimmons.com/
★ Jen Simmons Lab with Examples: http://labs.jensimmons.com/
★ Mozilla Developer Network Documentation:

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout
★ Playtime: http://cssgridgarden.com/ and http://flexboxfroggy.com/
★ Beauty: http://www.csszengarden.com/
★ All things CSS: https://css-tricks.com/
“Becoming someone who understands
CSS, rather than someone who just
uses CSS, will give you a huge
advantage in your work.
Rachel Andrew
THANK YOU!
ajara i. pfannenschmidt
web craftswoman
@ip_nagare
ip@nagare.eu

More Related Content

What's hot (20)

PPT
android layouts
Deepa Rani
 
DOCX
Aria interview questions
learnstraightsap
 
PDF
Introducing CSS Grid Layout
Rachel Andrew
 
PPTX
Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programming Patter...
Domenic Denicola
 
PDF
CSS Day: CSS Grid Layout
Rachel Andrew
 
PDF
Html 5 New Features
Ata Ebrahimi
 
PPTX
Express js
Manav Prasad
 
PDF
Android Development - ConstraintLayout
Manuel Vicente Vivo
 
PDF
angular fundamentals.pdf
NuttavutThongjor1
 
PDF
App development with quasar (pdf)
wonyong hwang
 
PPTX
Javascript
Mayank Bhatt
 
PDF
JavaScript - Chapter 11 - Events
WebStackAcademy
 
PDF
What's new in NextJS 13_.pdf
TapanPatel847364
 
PPT
Java Script ppt
Priya Goyal
 
PDF
7.-Bootstrap-5-report powerpoint presentation
JohnLagman3
 
PPTX
New Elements & Features in HTML5
Jamshid Hashimi
 
PPTX
jQuery PPT
Dominic Arrojado
 
PPTX
What is the best steps for seo ? ppt
e-Definers Technology
 
PDF
Intro to HTML & CSS
Syed Sami
 
PPT
JavaScript Tutorial
Bui Kiet
 
android layouts
Deepa Rani
 
Aria interview questions
learnstraightsap
 
Introducing CSS Grid Layout
Rachel Andrew
 
Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programming Patter...
Domenic Denicola
 
CSS Day: CSS Grid Layout
Rachel Andrew
 
Html 5 New Features
Ata Ebrahimi
 
Express js
Manav Prasad
 
Android Development - ConstraintLayout
Manuel Vicente Vivo
 
angular fundamentals.pdf
NuttavutThongjor1
 
App development with quasar (pdf)
wonyong hwang
 
Javascript
Mayank Bhatt
 
JavaScript - Chapter 11 - Events
WebStackAcademy
 
What's new in NextJS 13_.pdf
TapanPatel847364
 
Java Script ppt
Priya Goyal
 
7.-Bootstrap-5-report powerpoint presentation
JohnLagman3
 
New Elements & Features in HTML5
Jamshid Hashimi
 
jQuery PPT
Dominic Arrojado
 
What is the best steps for seo ? ppt
e-Definers Technology
 
Intro to HTML & CSS
Syed Sami
 
JavaScript Tutorial
Bui Kiet
 

Similar to CSS Grid Layout Introduction (20)

PPT
17523630.ppt
ssusere2bc36
 
PPTX
2D Page Layout
Unfold UI
 
PDF
Making the most of New CSS Layout
Rachel Andrew
 
PPTX
Css Grid Layout - A Short Introduction - Part 1
Adam Michalowski
 
PDF
CSS Grid Layout. Implementation status and roadmap (Webkit Contributors Meeti...
Igalia
 
PDF
Evergreen websites for Evergreen browsers
Rachel Andrew
 
KEY
CSS3 for web designer - How to design a visually appealing website
Mario Hernandez
 
PDF
Unlocking the Power of CSS Grid Layout
Rachel Andrew
 
PDF
All Day Hey! Unlocking The Power of CSS Grid Layout
Rachel Andrew
 
PDF
Frontend United: Start using CSS Grid Layout today!
Rachel Andrew
 
PDF
Talk Web Design: Get Ready For CSS Grid Layout
Rachel Andrew
 
PDF
CSS Boc model
Yaowaluck Promdee
 
PDF
CSS Grid Layout from the inside out (HTML5DevConf Autumn 2015)
Igalia
 
PDF
Introduction to CSS Grid Layout
Rachel Andrew
 
PDF
An Event Apart Nashville: CSS Grid Layout
Rachel Andrew
 
PDF
The Future State of Layout
Stephen Hay
 
PDF
New CSS Meets the Real World
Rachel Andrew
 
KEY
CSS and CSS3
Robyn Overstreet
 
PDF
SmashingConf SF: Unlocking the Power of CSS Grid Layout
Rachel Andrew
 
PDF
CSS Grid Layout for Frontend NE
Rachel Andrew
 
17523630.ppt
ssusere2bc36
 
2D Page Layout
Unfold UI
 
Making the most of New CSS Layout
Rachel Andrew
 
Css Grid Layout - A Short Introduction - Part 1
Adam Michalowski
 
CSS Grid Layout. Implementation status and roadmap (Webkit Contributors Meeti...
Igalia
 
Evergreen websites for Evergreen browsers
Rachel Andrew
 
CSS3 for web designer - How to design a visually appealing website
Mario Hernandez
 
Unlocking the Power of CSS Grid Layout
Rachel Andrew
 
All Day Hey! Unlocking The Power of CSS Grid Layout
Rachel Andrew
 
Frontend United: Start using CSS Grid Layout today!
Rachel Andrew
 
Talk Web Design: Get Ready For CSS Grid Layout
Rachel Andrew
 
CSS Boc model
Yaowaluck Promdee
 
CSS Grid Layout from the inside out (HTML5DevConf Autumn 2015)
Igalia
 
Introduction to CSS Grid Layout
Rachel Andrew
 
An Event Apart Nashville: CSS Grid Layout
Rachel Andrew
 
The Future State of Layout
Stephen Hay
 
New CSS Meets the Real World
Rachel Andrew
 
CSS and CSS3
Robyn Overstreet
 
SmashingConf SF: Unlocking the Power of CSS Grid Layout
Rachel Andrew
 
CSS Grid Layout for Frontend NE
Rachel Andrew
 
Ad

Recently uploaded (20)

PPTX
Modelling for etab and design on etabs for concrete
MohamedAttia601252
 
PPTX
Round 1 Final Assessment-Chelsea Black.pptx
indiapoliticscom
 
PPTX
etab modelling and design of concrete elemnts
MohamedAttia601252
 
PPTX
Untitled presentation on support system for Btech
rishikrajsmhs
 
PPTX
Turbomachinery_Presentation.pptx....... introduction and basic
abhisheksabhigowda47
 
PPTX
Pendant Lights, Types and their applications
agdisha2
 
PDF
animewitcher.cc https://animewitcher.cc/
Anime witcher
 
PDF
Guide to Understanding Hailey Welch's Wealth
arslantaj725
 
PPTX
Project Report on Corrosion (1).pptxkkkk
kaushikpkrishna2024
 
PDF
Bethany Michels Master of Architecture Thesis 2025
Bethany Michels
 
PDF
ABS system PPT 2025 for used automatic backing system .pdf
altron1331
 
PPTX
Turn prompts into brochures - AI Brochure Generator
Venngage AI Infographic Generator
 
PPTX
Lotus School Manikonda – Best CBSE & SSC School in Hyderabad
CharanRks
 
PPTX
Introduction_to_GD&T_Complete.pptx_growww
rajkumarsingh764766
 
PDF
LAVIELACE - Collections portfolio showcase
Geo Lupascu
 
PPTX
Factorising Expressions Presentation in Green Brown Illustrative Scrapbook St...
hazlienasyiqeen
 
PPTX
Hedgining through financil contracts (1).pptx
icuphamid
 
PPTX
BOILER STEAM bana M ntpc kahalgaon boiler .pptx
didikesaadi1108
 
PPTX
BASIC PRACTICE POWER POINT PRESENTATION 1
rkbasumatary02
 
DOCX
LRC image social media marketing class design
yeshwimbu
 
Modelling for etab and design on etabs for concrete
MohamedAttia601252
 
Round 1 Final Assessment-Chelsea Black.pptx
indiapoliticscom
 
etab modelling and design of concrete elemnts
MohamedAttia601252
 
Untitled presentation on support system for Btech
rishikrajsmhs
 
Turbomachinery_Presentation.pptx....... introduction and basic
abhisheksabhigowda47
 
Pendant Lights, Types and their applications
agdisha2
 
animewitcher.cc https://animewitcher.cc/
Anime witcher
 
Guide to Understanding Hailey Welch's Wealth
arslantaj725
 
Project Report on Corrosion (1).pptxkkkk
kaushikpkrishna2024
 
Bethany Michels Master of Architecture Thesis 2025
Bethany Michels
 
ABS system PPT 2025 for used automatic backing system .pdf
altron1331
 
Turn prompts into brochures - AI Brochure Generator
Venngage AI Infographic Generator
 
Lotus School Manikonda – Best CBSE & SSC School in Hyderabad
CharanRks
 
Introduction_to_GD&T_Complete.pptx_growww
rajkumarsingh764766
 
LAVIELACE - Collections portfolio showcase
Geo Lupascu
 
Factorising Expressions Presentation in Green Brown Illustrative Scrapbook St...
hazlienasyiqeen
 
Hedgining through financil contracts (1).pptx
icuphamid
 
BOILER STEAM bana M ntpc kahalgaon boiler .pptx
didikesaadi1108
 
BASIC PRACTICE POWER POINT PRESENTATION 1
rkbasumatary02
 
LRC image social media marketing class design
yeshwimbu
 
Ad

CSS Grid Layout Introduction

  • 2. A BRIEF HISTORY IN WEBPAGE LAYOUT First Webpage 1992
  • 3. A BRIEF HISTORY IN WEBPAGE LAYOUT Yahoo! Website 2002Yahoo! Website 1996
  • 4. A BRIEF HISTORY IN WEBPAGE LAYOUT Yahoo! Website 2017Yahoo! Website 2009
  • 5. CSS GRID LAYOUT DEFINITION A grid is an intersecting set of horizontal and vertical lines. One set defining rows and one set defining columns. Elements can be placed onto the grid, respecting these column and row lines.
  • 6. CSS GRID LAYOUT LEVEL 1 SPECIFICATION ★ Two-dimensional grid-based layout system. ★ Fixed track sizes (px) and/or flexible track sizes (%, fr). ★ Precise item placement through line numbers, names or areas. 
 Algorithm for non-defined items included. ★ Automated creation of additional tracks to hold content e.g. 
 add as many rows as will fit in container. ★ Alignment control of grid and grid elements. ★ Overlapping content control through z-index.
  • 7. CSS GRID LAYOUT SUPPORT Source: caniuse.com 2.08.2017
  • 8. CSS GRID LAYOUT TERMINOLOGY ★ Grid Container > Element to which display:grid; is applied. ★ Grid Item > Direct descendants of the grid container. ★ Grid Line > Dividing lines of the grid structure. Horizontal (row) and vertical (column) lines. ★ Grid Track > The space between two adjacent grid lines. ★ Grid Cell > Single unit. Space between 2 adjacent column and row grid lines. ★ Grid Area > Total space surrounded by 4 grid lines. Can consists of a numerous grid cells.
  • 9. CSS GRID LAYOUT TERMINOLOGY
  • 10. CSS GRID CONTAINER PROPERTIES ★ display: grid | inline-grid | subgrid ★ grid-template-columns: <track-size> ... | <line-name> <track- size> … ★ grid-template-rows <track-size> ... | <line-name> <track- size> … ★ grid-column-gap | grid-row-gap <line-size> ★ grid: none | <grid-template-rows> / <grid-template-columns> | <grid-auto-flow> [<grid-auto-rows> [/ <grid-auto-columns>]] ★ justify-items | align-items: start | end | center | stretch ★ justify-content | align-content: start | end | center | stretch
  • 11. CSS GRID FUNCTIONS ★ MinMax()
 grid-auto-rows
 with a minimum height (px) but expanding with content (auto). ★ Auto-placement and order 
 grid-auto-flow: column | row | dense
 By default items are laid out by row. ★ Flexible filling of tracks 
 auto-fit | auto-fill
 Use in combination with minmax() to achieve flexible filling of tracks on grid in viewport. ★ and many more …
  • 12. CSS GRID ELEMENT PROPERTIES ★ grid-column-start, grid-column-end, 
 grid-row-start, grid-row-end: <number> | <name> | 
 span <number> | span <name> | auto ★ grid-column | grid-row: <start-line> / <end-line> ★ grid-area: <name> | <row-start> / <column-start> / <row- end> / <column-end> ★ justify-self: start | end | center | stretch ★ align-self: start | end | center | stretch
  • 13. CSS GRID LAYOUT RESOURCES ★ Great work by Rachel Andrew: https://gridbyexample.com/ ★ Rachel Andrew’s Website & Blog: https://rachelandrew.co.uk/ ★ Rachel Andrew’s Weekly Newsletter: http://csslayout.news/ ★ Jen Simmons Work on CSS: http://jensimmons.com/ ★ Jen Simmons Lab with Examples: http://labs.jensimmons.com/ ★ Mozilla Developer Network Documentation:
 https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout ★ Playtime: http://cssgridgarden.com/ and http://flexboxfroggy.com/ ★ Beauty: http://www.csszengarden.com/ ★ All things CSS: https://css-tricks.com/
  • 14. “Becoming someone who understands CSS, rather than someone who just uses CSS, will give you a huge advantage in your work. Rachel Andrew
  • 15. THANK YOU! ajara i. pfannenschmidt web craftswoman @ip_nagare ip@nagare.eu