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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

“Baseline”

A
  • vertical alignment keyword
  • Specifies Central vertical alignment
  • Specifies the default Behavior
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

“top”

A
  • vertical-align keyword
  • Specifies vertical alignment with top-most content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

“middle”

A
  • vertical-align keyword
  • Specifies vertical alignment with middle content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

“bottom”

A
  • vertical-align keyword
  • Specifies vertical alignment with bottom-most content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

“text-top”

A
  • vertical-align keyword
  • Specifies the vertical alignment of other inline content boxes to the top of a line box.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

“text-bottom”

A
  • vertical-align keyword
  • Specifies the vertical alignment another inline content box to the bottom edge of a line box
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

“underline”

A
  • text-decoration keyword
  • adds a line below the text
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

“overline”

A
  • text-decoration keyword
  • Adds a line above the text
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

“line-through”

A
  • text-decoration keyword
  • Add a line through the text
17
Q

“none”

A
  • text-decoration keyword
  • Can be specified to prevent unwanted decorations appearing
  • (particularly popular for displaying hyperlinks without their usual default underline (be careful: some users may not recognize hyperlinks in this form))
18
Q

text-transform

A
  • An additional way to enhance text by specifying capitalization with keywords: “uppercase”, “lowercase”, or “capitalize”
  • Transforms what and how something is written in the HTML coding to what and how something is dictated in the CSS coding.
19
Q

“uppercase”

A
  • text-transform keyword
  • Transforms the text to all caps regardless of how it is written in the HTML coding
20
Q

“lowercase”

A
  • text-transform keyword
  • Transforms the text to all letters regardless of how it is written in the HTML coding