CSS 2 Flashcards
1
Q
declaration
A
- includes both the property and the value
- contained in the curly braces
2
Q
position
A
- used to arrange elements
3
Q
5 position properties (5)
A
- relative
- absolute
- fixed
- static
- inherit
4
Q
5 position properties (5)
**static
A
- default value
- elements not positioned at all
5
Q
5 position properties (5)
**inherit
A
- inherit the value from ancestor elements
6
Q
5 position properties (5)
**relative
A
- elements stays in normal flow
- can use offset properties
7
Q
5 position properties (5)
**absolute
A
- elements measured in relation to its containing elements
- parent element must have a position (not be static )
8
Q
5 position properties (5)
**fixed
A
- element is fixed in relation to the viewport
9
Q
the natural stacking or HTML from top is
A
- position (default highest z-index)
- inline
- float
- block (lowest)
10
Q
2 philosophical approaches for desktop/mobile design (2)
A
- graceful degradation
2. progressive enhancement
11
Q
graceful degradation (4)
A
- design for modern browsers
- provide fallback for unsupported features
- ensure basic functionality works for older browsers
- desktop first
12
Q
progressive enhancement
A
- focus on content and accessibility
- create base level experience
- add advance features for enhancements
- mobile first
13
Q
media types (4)
A
- speech
- screen
- all
14
Q
media types (4)
A
matches to printer and other print related displays
15
Q
media types (4)
**speech
A
- matches screen readers