CSS Flashcards
What CSS properties make up the box model?
Margin, Padding, border, width and height
Which CSS property pushes boxes away from eachother?
Margin
What CSS property adds space between a box’s content and its border?
padding
What are the names of individual pieces of a css rule set?
Selector and Declaration Block
CSS selector for id attribute?
id
CSS select elements by type?
element
CSS selector for element by class?
.class
What are the three different types of values you can use to specify colors in CSS?
RGB, Hexadecimal and color name
What is a pseudo-class?
pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s).
Two types of units that. can be used to adjust font size in CSS
px, em, %
What CSS property controls the font used for the text inside an element?
font-family
Default direction of a flex cotainer/ direction of an element with display: flex
row
default flex wrap of flex container
nowrap
why do two divs vertically stack on one another by default?
block
Default value for the position property of HTML elements?
Static