Grids & Responsiveness
Grids & Responsiveness
• Fr unit
• Repeat function
• Grid-auto-rows: minmax()
Grid Properties:
• Justify-content
• Align-content
• Justify-items
• Align-items
• Justify-self
• Align-self
• Place-items
• Place-self
Explore time:
• ‘Viewport’ - the area of the window in which web content can be seen. We use the dimensions of the viewport
(usually the width, but sometimes the height) as the basis of our media queries.
• Media queries are used to set di erent style rules for di erent devices or sized screens. We use breakpoints to set
the condition of a media query. The logic is: @media(feature:value)
• Essentially, media query breakpoints are pixel values that a developer/designer can de ne in CSS. When a
responsive website reaches those pixel values, a transformation (such as the one detailed above) occurs so that the
website o ers an optimal user experience
ff
ff
ff
fi
Multiple BreakPoints:
Explore time:
Create your own layout using Flex and Grids together
Nested Grids
Nesting CSS grids is simple and can be done simply by using the display:grid rule for both a parent and child element.