IES: CSS-deck 5 Flashcards
In CSS, the browser generates what with regards to content?
Content on a web page is displayed in the number of invisible rectangular boxes that are generated by \_\_\_\_\_
.
In CSS, these may be either block level, inline-block, or inline?
Content boxes may be either \_\_\_\_\_
, \_\_\_\_\_
, or \_\_\_\_\_
.
characteristics of block level content boxes
- 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
characteristics of inline content boxes
- 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.
CSS- content:
the area filled by text or images
CSS- padding:
a transparent area around the content
CSS- border:
surrounds the content and padding
CSS- margin:
a transparent area outside the border
What is the width and height of an element specified as 300px wide and 100px High?
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
Whether an element is considered Block Level or inline determines \_\_\_\_\_\_
?
How is the display format determined by the element?
DOC tree: Inline elements are always \_\_\_\_\_
of Block Level elements
CSS: with regards to how elements are displayed, what format is considered “always descendants” of what other format?
characteristics of inline-block content boxes:
- 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)
the display format can be explicitly determined by a style rule assigning “block”, “inline”, or “inline-block” to an element’s \_\_\_\_
property.
By assigning to an element’s display property, the \_\_\_\_\_
\_\_\_\_\_
can be the explicitly determined
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 \_\_\_\_\_
\_\_\_\_\_
.
in CSS, the unit \_\_\_\_\_
represents the height of the current font. Using this unit is considered \_\_\_\_\_
\_\_\_\_\_
because it offers maximum flexibility.
- 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
\_\_\_\_\_
value can be used to set specify a relative size. - A value of 50% makes the target element
\_\_\_\_\_
the size of its containing element.