IES: CSS-deck 5 Flashcards

1
Q

In CSS, the browser generates what with regards to content?

A

Content on a web page is displayed in the number of invisible rectangular boxes that are generated by \_\_\_\_\_.

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

In CSS, these may be either block level, inline-block, or inline?

A

Content boxes may be either \_\_\_\_\_, \_\_\_\_\_, or \_\_\_\_\_.

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

characteristics of block level content boxes

A
  • normally, they have line breaks before and after the Box
  • By default, they are stacked on the page one below another (always display vertically)
  • Comprises a core content area surrounded by optional areas for padding, border, and margins
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

characteristics of inline content boxes

A
  • they do not add line breaks
  • They are simply created within lines of content
  • Some properties, such as width or height, do not apply
  • Margin and padding properties apply only to either side of the content- not above nor below the content.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CSS- content:

A

the area filled by text or images

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

CSS- padding:

A

a transparent area around the content

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

CSS- border:

A

surrounds the content and padding

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

CSS- margin:

A

a transparent area outside the border

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

What is the width and height of an element specified as 300px wide and 100px High?

A

When you specify the width and height of an element, you are specifying the width and height of that element’s content area alone. The total space occupied by that element includes the addition (to the already specified content area) of the left/right as well as the top/bottom padding, the left/right as well as the top/bottom border, and the left/right as well as the top/bottom margin

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

Whether an element is considered Block Level or inline determines \_\_\_\_\_\_?

A

How is the display format determined by the element?

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

DOC tree: Inline elements are always \_\_\_\_\_ of Block Level elements

A

CSS: with regards to how elements are displayed, what format is considered “always descendants” of what other format?

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

characteristics of inline-block content boxes:

A
  • Do not automatically display one on top of the other
  • Does not add a line break after each element
  • As opposed to the inline display, the inline-block display applies top/bottom margins and top/bottom paddings
  • (is often used to create a navigation bar of horizontal links : p. 248)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

the display format can be explicitly determined by a style rule assigning “block”, “inline”, or “inline-block” to an element’s \_\_\_\_ property.

A

By assigning to an element’s display property, the \_\_\_\_\_ \_\_\_\_\_ can be the explicitly determined

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

Etymology: “em” -originates from topography: represented with the width of the letter “M” in the current font set.
CSS: it represents the \_\_\_\_\_ of the current font.
Often considered good practice to use em units for text size wherever possible: it offers \_\_\_\_\_ \_\_\_\_\_.

A

in CSS, the unit \_\_\_\_\_ represents the height of the current font. Using this unit is considered \_\_\_\_\_ \_\_\_\_\_ because it offers maximum flexibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • A percentage value can be used to specify a \_\_\_\_\_ size.
  • A value of \_\_\_\_\_ makes the target element half the size of its containing element.
A
  • A \_\_\_\_\_ value can be used to set specify a relative size.
  • A value of 50% makes the target element \_\_\_\_\_ the size of its containing element.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Assigning any non-zero value to a property, the declaration must include a \_\_\_\_\_ \_\_\_\_\_ name to specify which unit of measurement to apply.

A

When assigning any non-zero to a property, the declaration must include a two-letter unit to specify which \_\_\_\_\_ of \_\_\_\_\_ to apply.

17
Q

“in”

A

inches

18
Q

“cm”

A

centimeters

19
Q

“mm”

A

millimeters

20
Q

“pt”

A
  • points
  • (typographical unit of font height where 72 points is equivalent to 1 inch)