Placement and Positioning Flashcards
how do we make an item display along the full length of a grid?
selector_of_container_with_grid_template_in_it {grid-template-columns: 100% }
how do we align text?
text-align: this must be done in the innermost tag not a parent tag, e.g.
difference between grid and flex?
generally, grid is for 2D while flex is for 1D there is also differences in wrapping and a few other nuances
when using display: flex; what are the properties you can give the justify-content property?
flex-start, flex-end, center, space-around, space-between
when using display: flex; what are the properties you can give the align-items property?
flex-start, flex-end, center, baseline, stretch
when using display: flex; what are the properties you can give the flex-direction property?
row column row-reverse column-reverse
when using display: flex; what are the properties you can give the flex-wrap property?
nowrap wrap wrap-reverse
when using display: flex; what is the flex-flow property used for?
to combine flex-wrap and flex-direction properties
into what property can we combine the flex-direction and flex-wrap properties?
flex-flow
when using display: flex; what are the properties you can give the align-content property?
flex-start
flex-end
center
space-around
space-between
stretch
when is the position property generally used?
CSS positioning can be especially useful when you need to position something that cannot be positioned within normal flow.