Module 04-03 CSS Grid, Flexbox, & Responsive Design Flashcards
What units are used to create relative column or row dimensions?
fr (fraction of the available space)
What property adds space between grid items?
grid-gap
What unit of measurement sets an item in relationship to the viewport height?
vh (as a percentage, i.e. 100vh for 100% of the viewport height)
What unit of measurement sets an item in relationship to the viewport width?
vw (as a percentage, i.e. 100vw for 100% of the viewport width)
What is the column axis called?
The block axis
What is the row axis called?
The inline axis
Along what axis does align-items align?
The block axis
Along what axis does justify-items align?
The inline axis
What is the default alignment?
stretch - fills the whole height and width of a cell
What is responsive design?
Design that responds to the user’s behavior and environment based on screen size, platform, and orientation - one site for every screen
What are the three key areas of responsive design?
Flexible/Fluid Grid Layouts, Resizable Images, CSS Media Queries
What do you use to conditionally apply CSS styles?
Media queries
What is a breakpoint?
Points at which a page behaves differently, typical set by something like screen size (i.e. a media query with max-width: 600px or min_width: 768px)
What is mobile first?
Designing for mobile devices first, expanding as setting a breakpoint once it no longer looks good!
What is a Flexbox made up of?
A flex container that contains one or more flex items