CSS Deck 3 Flashcards

1
Q

Opactity

A

Opactity:0;

The element will only be visually hidden, but its space will still be allocated

Users can still focus on the element through the keyboard and the element receives click elements

Allows to transition (to create a fading effect)

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

Visibility

A

visibility:hidden;

The element will be visually hidden but space will still be allocated

Users cannot focus on the element of interacting with it. The element does not receive click events

Child elements can be made visible by changing their visbility

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

Display

A

display:none;

Space itself will not be allocated for the element

It is similar to if the element were no present in the DOM iteself

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

CSS Mistakes: Overly Specific Selectors

A

Affects readability, and gives yourself a hard time to debug

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

CSS Mistakes: Using Color Names

A

Different browsers may have different values for color names

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

CSS Mistakes: Not using shorthands

A

Simplifies code and limits repetition

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

CSS Mistakes: Not Modularizing

A

Putting your styles across multiple files helps keep code organized and easier to debug

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

CSS Mistakes: Repeating things

A

Try to keep that limited – especially if elements share styles

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

CSS Mistakes: Not Optimizing

A

Always minify your stylesheet after development to reduce file size

Use any optimizer to remove any unused styles that bloat your stylesheet

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