prep-css Flashcards

1
Q

What is the purpose of CSS?

A

To style and design the layout of web pages

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

Describe the syntax of a CSS rule-set.

A

Selector and declarations (properties and values)

H1 {color:blue; font-style:italic}

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

What CSS properties make up the box model?

A

Content, padding, border, margins

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

Which CSS property pushes boxes away from each other?

A

Margins

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

Which CSS property pushes box content away from its border?

A

Padding

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

What are some characteristics of block?

A

It starts on a new line and it takes up the entire width

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

What are some characteristics of inline?

A

It displays in the same line, and height and width values will have no effect on it

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

What are some characteristics of inline-block?

A

Inline-block is formatted like an inline element, so it does not start on a new line, however it also is in a block container so you can change the width and height

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