IES: CSS-deck 11 Flashcards
1
Q
CSS vertical-align
A
- Can explicitly specify how text should be vertically aligned
- Keywords: “baseline”, “sub”, “super”, “top”, “middle”, “bottom”, “text-top”, or “text-bottom”
- Can also shift content up or down by specifying positive or negative unit values or percentage values
2
Q
“Baseline”
A
- vertical alignment keyword
- Specifies Central vertical alignment
- Specifies the default Behavior
3
Q
“sub”
A
- vertical alignment keyword
- Increases the boundaries of the outer container in which the line box exists
- Shifts the text down to display subscript
- (create the shift then apply a font rule to reduce the shifted text’s size)
4
Q
“super”
A
- vertical alignment keyword
- increases the boundaries of the outer container in which the line box exists
- Shifts the text up to display superscript
- (create the shift then apply a font rule to reduce the shifted text’s size)
5
Q
“top”
A
- vertical-align keyword
- Specifies vertical alignment with top-most content
6
Q
“middle”
A
- vertical-align keyword
- Specifies vertical alignment with middle content
7
Q
“bottom”
A
- vertical-align keyword
- Specifies vertical alignment with bottom-most content
8
Q
“text-top”
A
- vertical-align keyword
- Specifies the vertical alignment of other inline content boxes to the top of a line box.
9
Q
“text-bottom”
A
- vertical-align keyword
- Specifies the vertical alignment another inline content box to the bottom edge of a line box
10
Q
text-indent
A
- accomplishes indenting the first line of each paragraph to improve readability
- May specify an indentation size using units such as “in” and “em”
- May be specified as a percentage where the browser will indent an amount relative to the total line length
- (with text-indent, specifying negative values is possible but produces inconsistent results so should be avoided)
11
Q
CSS word-spacing
A
- default spacing: “normal”
- Explicitly specifies a value to adjust the amount of space between each word
- The specified value is added to the default spacing
- (Ex. specifying 10px increases the space between words to “normal”(default setting) + 10px)
- May be overridden by the text-align property (has precedence in determining the appearance of the entire line.)
- Can accept negative values
12
Q
CSS letter-spacing
A
- default spacing: “normal”
- Explicitly specifies a value to adjust the amount of space between each letter
- The specified value is added to the default spacing
- (Ex. specifying 10px increases the space between letters to “normal”(default setting) + 1px)
- May be overridden by the text-align property (has precedence in determining the appearance of the entire line.)
- can accept negative values
13
Q
text-decoration
A
- keywords: “underline”, “overline”, “line-through”, or “none”
- multiple keywords can be specified as a space-separated list to apply multiple decorations to the text
14
Q
“underline”
A
- text-decoration keyword
- adds a line below the text
15
Q
“overline”
A
- text-decoration keyword
- Adds a line above the text