Box Model Flashcards
Padding is transparent and has no color of its own. True or false?
True.
What is the box model?
Every element is in a box surrounded by padding with an optional border surrounded by margin
Which is optional in the box model, padding, border, or margin?
All three
Which of these can be styled: the padding border or margin?
The border. Padding and margin are transparent and take on the style found beneath them.
What does the margin do?
It provides space between your element and other elements.
Which property do you use to set the background image of an element?
background-image
Is the default for background-images to repeat or not repeat?
Repeat
The background-position property sets the position of the image and can be specified in what?
Pixels, percentages or using keywords like top, left, right, bottom, and center.
In CSS background-image is set to what?
A URL which can be a relative path or a full-blown URL
How do you turn background-image repeat off?
background-repeat: no-repeat;
What are the eight border-style property controls?
Solid, double, groove, outset, dotted, dashed, inset, ridge.
The border-width property controls the width of the border. You can use __________ or pixels to specify the width.
Keywords such as thin, medium, or thick.
The border-color property sets the color of the border. You can do this with which three methods?
Color names, RGB values, or hex codes.
Which property is used to increase space between each line of text?
line-height