LearningFuze Mod 1 - CSS Flashcards
This is CSS
What are the names of the individual pieces of a CSS rule?
selector and deceleration
In CSS, how do you select elements by their class attribute?
. then class selector
In CSS, how do you select elements by their type?
add the name of the tag
In CSS, how do you select an element by its id attribute?
then the selector
Name three different types of values you can use to specify colors in CSS.
rgb values, hex codes and color names
What CSS properties make up the box model?
Border, margin and padding
Which CSS property pushes boxes away from each other?
The margin property
Which CSS property add space between a box’s content and its border?
The padding property
What is a pseudo-class?
It changes the appearance of elements when a user interacts with them
What are CSS pseudo-classes useful for?
Creates an interactive webpage
Name two types of units that can be used to adjust font-size in CSS.
Pixels and rem
What CSS property controls the font used for the text inside an element?
Font-family
What is the default flex-direction of a flex container?
Row
What is the default flex-wrap of a flex container?
nowrap, all items will try to fit on one line
Why do two div elements “vertically stack” on one another by default?
Because they are block elements