CSS Flashcards
(15 cards)
what is padding?
spacing between the content of the element and the border
what is a border?
sits on the outside edge of the padding - outer edge of the content
what is a margin?
space outside the box (border) and pushes any other html elements before and after it away (space between html elements)
True or false: items that come later in the style sheet are prioritized over those that come earlier.
true
what does this tell the elements on the page?
*{
margin: 0;
padding:0;
}
tells every element on the page to not have any margin or border unless explicitly told to
what is flexbox?
accommodates various screen sizes
what does this mean?
display:flex;
creates a one-dimensional layout- it controls the distribution of its content
what is the default flexbox set to?
row
how do you change a flexbox from row to column?
flex-direction: column;
how do you get elements to wrap when there is no longer space on one line?
flex-wrap: wrap;
what does the justify-content property do?
allows you to control spacing between child elements
what does the default value (flex-start) of justify content do?
justifies all elements to the left
what does justify-content: flex-end; do?
justifies all elements to the right
what does justify-content: center; do?
positions all elements as close to the center as possible
what does justify-content: space-between; do?
distributes all empty space between child elements to keep them evenly spaced apart