CSS3 Flashcards

1
Q

Border Radius

A

defines rounded border corners. The curve of each corner is defined using one or two radii, defining its shape: circle or ellipse.

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

Box Shadow

A

horizontal offset: positive right; negative left
vertical offset: positive below; negative above
blur radius: 0 (less blur) to posNum (most blur)
spread radius: positive increase shadow; negative decrease shadow

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

Transition

A

place the transition property on the selectors you want to give a timing transition

ex: div {
transition: background-color 0.5s ease;
background-color: red;
}
div:hover {
background-color: green;
}

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

pseudo selectors: :before, :after, :nth-child

A

RESEARCH

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

classname patterns like BEM

A

RESEARCH

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

vendor prefixes

A

RESEARCH

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

explain event bubbling

A

RESEARCH

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

explain event delegation

A

RESEARCH

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

give an example of when it’s appropriate to apply styles to a node like button { … } as opposed to using a unique classname .button { … }

A

RESEARCH

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

should be able to implement a sticky footer

A

RESEARCH

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

should be able to implement a button that depresses when clicked

A

RESEARCH

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

should be able to implement a dropdown menu

A

RESEARCH

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

css selectors parts: ~=, |=, ^=, $=

A

RESEARCH

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

pseudo selectors: :not

A

RESEARCH

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

@media queries

A

RESEARCH

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

animations

A

RESEARCH

17
Q

data attributes

A

RESEARCH

18
Q

What’s the difference between “resetting” and “normalizing” CSS? Which would you choose, and why?

A

Resetting - removes all styles from every element - margins, padding, etc.

Normalizing - makes elements render across browsers

19
Q

Describe floats and how they work.

A

“push” an element to the side you’ve chosen, either left or right.

20
Q

Describe z-index and how stacking context is formed.

A

z-index is for visual depth. Because some elements overlap, because some elements are nested within each other, there’s a natural visual depth that builds, where you can see some elements on top or behind other ones.

21
Q

What are the various clearing techniques and which is appropriate for what context?

A

is a way for an element to automatically clear its child elements, so that you don’t need to add additional markup. It’s generally used in float layouts where elements are floated to be stacked horizontally.