Box Model Flashcards

0
Q

Padding is transparent and has no color of its own. True or false?

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What is the box model?

A

Every element is in a box surrounded by padding with an optional border surrounded by margin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which is optional in the box model, padding, border, or margin?

A

All three

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of these can be styled: the padding border or margin?

A

The border. Padding and margin are transparent and take on the style found beneath them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the margin do?

A

It provides space between your element and other elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which property do you use to set the background image of an element?

A

background-image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is the default for background-images to repeat or not repeat?

A

Repeat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The background-position property sets the position of the image and can be specified in what?

A

Pixels, percentages or using keywords like top, left, right, bottom, and center.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In CSS background-image is set to what?

A

A URL which can be a relative path or a full-blown URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you turn background-image repeat off?

A

background-repeat: no-repeat;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the eight border-style property controls?

A

Solid, double, groove, outset, dotted, dashed, inset, ridge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The border-width property controls the width of the border. You can use __________ or pixels to specify the width.

A

Keywords such as thin, medium, or thick.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The border-color property sets the color of the border. You can do this with which three methods?

A

Color names, RGB values, or hex codes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which property is used to increase space between each line of text?

A

line-height

How well did you know this?
1
Not at all
2
3
4
5
Perfectly