Basic Visual Formatting
Chapter 6
Figures
- The content area and its surroundings
- Changing the display role from inline to block
- Changing the display role from list-item to inline
- The complete box model in two different writing modes
- The block and inline axis directions for three common writing modes
- Sizing elements along their inline axis
- Content sizing
- Minimum content sizing
- Fit-content sizing
- Maximum block sizing
- Sizing elements’ width
- Heights and widths
- The effects of
box-sizing
- The seven properties of block-axis formatting, and which can be set to
auto
- Auto block sizes with block-level children
- Percentage block sizes in different circumstances
- Block-axis sizing and placement in detail
- Methods for overflowing content
- Setting overflow separately for x and y
- The effects of a negative top margin
- The effects of a negative block-end margin
- Collapsed versus uncollapsed margins
- Collapsing in detail
- Collapsing (or not) with borders added to the mix
- Examples of negative block-axis margins
- Collapsing margins and negative margins, in detail
- Additive padding and margin
- Subtractive padding
- Element boxes are as wide as the width of their containing block
- The seven properties of inline-axis formatting, and which can be set to
auto
- Overriding the inline-end margin’s value
- Automatic inline sizing
- Setting an explicit inline size
- What happens when both the inline size and inline-start margin are auto
- Offset is implicit in the parent’s margins and padding
- Wider children through negative margins
- Setting a negative inline-start margin
- Changing replaced element inline sizes
- Markers inside and outside the list
- A gallery with and without aspect ratios defined
- A single-line inline element
- A multiple-line inline element
- Showing lines in different alignments and writing modes
- Em boxes determine content area height
- Content area plus leading equals inline box
- Inline boxes within a line
- Line boxes within a paragraph
- Vertical alignment affects line box height
- Aligning an inline element to the line box
- Text protruding from the line box (again)
- Assigning the line-height property to inline elements
- Increasing line-height to leave room for inline borders
- Using a scaling factor for line-height
- Padding and borders do not alter line-height
- Padding and margins on inline elements
- Sliced and cloned inline fragments
- Replaced elements can increase the height of the line box but not the value of line-height
- Adding padding, borders, and margins to an inline replaced element increases its inline box
- The effect of negative margins on inline replaced elements
- Inline replaced elements sit on the baseline
- Pulling inline replaced elements down with a negative bottom margin
- The behavior of an inline-block element
- Autosizing of an inline-block element
- A regular unordered list, and one with display: contents
- Making elements invisible without suppressing their element boxes