CSS Properties Flashcards

1
Q

What is the outline property?

A

An outline is a line that is drawn around elements (outside the borders) to make the element “stand out”.

However, the outline property is different from the border property - The outline is NOT a part of an element’s dimensions; the element’s total width and height is not affected by the width of the outline.

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

Which property do I use with the ::before and ::after pseudo-elements if I want to insert generated content?

A

content

Ex:

li::before {
content: “•”;
padding-right: 8px;
color: blue;
}

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