CSS2.1 Test Suite

Visual formatting model details (975 tests)

Test Flags
10.1 Definition of "containing block"
Containing block for fixed positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for absolute positioning
Containing block for relative positioned elements is nearest block-level ancestor
  • If the element's position is 'relative', the containing block is formed by the content edge of the nearest block-level ancestor box.
Containing block for relative positioned elements is nearest table cell ancestor
  • If the element's position is 'relative', the containing block is formed by the content edge of the nearest table cell ancestor box.
Containing block for relative positioned elements is nearest inline-block ancestor
  • If the element's position is 'relative', the containing block is formed by the content edge of the nearest inline-block ancestor box.
Containing block for static positioned elements is nearest block-level ancestor
  • If the element's position is 'static', the containing block is formed by the content edge of the nearest block-level ancestor box.
Containing block for static positioned elements is nearest table cell ancestor
  • If the element's position is 'static', the containing block is formed by the content edge of the nearest table cell ancestor box.
Containing block for static positioned elements is nearest inline-block ancestor
  • If the element's position is 'static', the containing block is formed by the content edge of the nearest inline-block ancestor box.
Initial containing block for fixed positioned elements
  • The containing block is established by the viewport when an element uses fixed positioning.
Containing block for absolute positioned elements is nearest positioned (absolute) ancestor
  • If the element has 'position: absolute', the containing block is established by the nearest positioned ancestor.
Containing block for absolute positioned elements is nearest positioned (relative) ancestor
  • If the element has 'position: absolute', the containing block is established by the nearest positioned ancestor.
Containing block for absolute positioned elements is nearest positioned (fixed) ancestor
  • If the element has 'position: absolute', the containing block is established by the nearest positioned ancestor.
Containing Blocks - Inline-level elements position based on left-to-right direction and parent element is relative
  • If the ancestor is inline-level, positioned absolute, and direction is left-to-right, the top/left of the containing block determines the top/left padding edges of the first box generated by the ancestor.
Containing Blocks - Inline-level elements position based on left-to-right direction and parent element is absolute
  • If the ancestor is inline-level, positioned absolute, and direction is left-to-right, the top/left of the containing block determines the top/left padding edges of the first box generated by the ancestor.
Containing Blocks - Inline-level elements position based on left-to-right direction and parent element is fixed
  • If the ancestor is inline-level, positioned absolute, and direction is left-to-right, the top/left of the containing block determines the top/left padding edges of the first box generated by the ancestor.
Containing Blocks - Block-level elements position based on left-to-right direction and parent element is relative
  • The containing block is formed by the padding edge for block-level elements.
Containing Blocks - Block-level elements position based on left-to-right direction and parent element is absolute
  • The containing block is formed by the padding edge for block-level elements.
Containing Blocks - Block-level elements position based on left-to-right direction and parent element is fixed
  • The containing block is formed by the padding edge for block-level elements.
Containing Blocks - Fall back to Initial containing block
  • When there are no positioned ancestors then the initial containing block is used.
Containing block and absolutely positioned element in paged media positioned off first page
  • An absolutely positioned element positioned beyond the boundaries of the page being laid out can be omitted, rendered on the current page or on a following page.
MP
page-break-inside:auto
  • The 'auto' value of the 'page-break-inside' property neither forces nor forbids a page break inside the box.
P
10.2 Content width: the 'width' property
Horizontal Formatting AG
margin-right
margin-left
margin AG
padding-right I
width G
width G
width G
float G
Width using pixels with a minimum minus one value, -1px
  • The 'width' property sets a minimum minus one length value in pixels.
Width using pixels with a minimum value, 0px
  • The 'width' property sets a minimum length value in pixels.
Width using pixels with a minimum plus one value, 1px
  • The 'width' property sets a minimum plus one length value in pixels.
Width using pixels with a negative zero value, -0px
  • The 'width' property sets a negative zero length value in pixels.
Width using pixels with a positive zero value, +0px
  • The 'width' property sets a positive zero length value in pixels.
Width using pixels with a nominal value, 96px
  • The 'width' property sets a nominal length value in pixels.
Width using pixels with a positive nominal value, +96px
  • The 'width' property sets a positive nominal length value in pixels.
Width using points with a minimum minus one value, -1pt
  • The 'width' property sets a minimum minus one length value in points.
Width using points with a minimum value, 0pt
  • The 'width' property sets a minimum length value in points.
Width using points with a minimum plus one value, 1pt
  • The 'width' property sets a minimum plus one length value in points.
Width using points with a negative zero value, -0pt
  • The 'width' property sets a negative zero length value in points.
Width using points with a positive zero value, +0pt
  • The 'width' property sets a positive zero length value in points.
Width using points with a nominal value, 72pt
  • The 'width' property sets a nominal length value in points.
Width using points with a positive nominal value, +72pt
  • The 'width' property sets a positive nominal length value in points.
Width using picas with a minimum minus one value, -1pc
  • The 'width' property sets a minimum minus one length value in picas.
Width using picas with a minimum value, 0pc
  • The 'width' property sets a minimum length value in picas.
Width using picas with a minimum plus one value, 1pc
  • The 'width' property sets a minimum plus one length value in picas.
Width using picas with a negative zero value, -0pc
  • The 'width' property sets a negative zero length value in picas.
Width using picas with a positive zero value, +0pc
  • The 'width' property sets a positive zero length value in picas.
Width using picas with a nominal value, 6pc
  • The 'width' property sets a nominal length value in picas.
Width using picas with a positive nominal value, +6pc
  • The 'width' property sets a positive nominal length value in picas.
Width using centimeters with a minimum minus one value, -1cm
  • The 'width' property sets a minimum minus one length value in centimeters.
Width using centimeters with a minimum value, 0cm
  • The 'width' property sets a minimum length value in centimeters.
Width using centimeters with a minimum plus one value, 1cm
  • The 'width' property sets a minimum plus one length value in centimeters.
Width using centimeters with a negative zero value, -0cm
  • The 'width' property sets a negative zero length value in centimeters.
Width using centimeters with a positive zero value, +0cm
  • The 'width' property sets a positive zero length value in centimeters.
Width using centimeters with a nominal value, 2.54cm
  • The 'width' property sets a nominal length value in centimeters.
Width using centimeters with a positive nominal value, +2.54cm
  • The 'width' property sets a positive nominal length value in centimeters.
Width using millimeters with a minimum minus one value, -1mm
  • The 'width' property sets a minimum minus one length value in millimeters.
Width using millimeters with a minimum value, 0mm
  • The 'width' property sets a minimum length value in millimeters.
Width using millimeters with a minimum plus one value, 1mm
  • The 'width' property sets a minimum plus one length value in millimeters.
Width using millimeters with a negative zero value, -0mm
  • The 'width' property sets a negative zero length value in millimeters.
Width using millimeters with a positive zero value, +0mm
  • The 'width' property sets a positive zero length value in millimeters.
Width using millimeters with a nominal value, 25.4mm
  • The 'width' property sets a nominal length value in millimeters.
Width using millimeters with a positive nominal value, +25.4mm
  • The 'width' property sets a positive nominal length value in millimeters.
Width using inches with a minimum minus one value, -1in
  • The 'width' property sets a minimum minus one length value in inches.
Width using inches with a minimum value, 0in
  • The 'width' property sets a minimum length value in inches.
Width using inches with a minimum plus one value, 1in
  • The 'width' property sets a minimum plus one length value in inches.
Width using inches with a negative zero value, -0in
  • The 'width' property sets a negative zero length value in inches.
Width using inches with a positive zero value, +0in
  • The 'width' property sets a positive zero length value in inches.
Width using inches with a nominal value, 3in
  • The 'width' property sets a nominal length value in inches.
Width using inches with a positive nominal value, +3in
  • The 'width' property sets a positive nominal length value in inches.
Width using 'em' units with a minimum minus one value, -1em
  • The 'width' property sets a minimum minus one length value in 'em' units.
A
Width using 'em' units with a minimum value, 0em
  • The 'width' property sets a minimum length value in 'em' units.
A
Width using 'em' units with a minimum plus one value, 1em
  • The 'width' property sets a minimum plus one length value in 'em' units.
A
Width using 'em' units with a negative zero value, -0em
  • The 'width' property sets a negative zero length value in 'em' units.
A
Width using 'em' units with a positive zero value, +0em
  • The 'width' property sets a positive zero length value in 'em' units.
A
Width using 'em' units with a nominal value, 6em
  • The 'width' property sets a nominal length value in 'em' units.
A
Width using 'em' units with a positive nominal value, +6em
  • The 'width' property sets a positive nominal length value in 'em' units.
A
Width using 'ex' units with a minimum minus one value, -1ex
  • The 'width' property sets a minimum minus one length value in 'ex' units.
A
Width using 'ex' units with a minimum value, 0ex
  • The 'width' property sets a minimum length value in 'ex' units.
A
Width using 'ex' units with a minimum plus one value, 1ex
  • The 'width' property sets a minimum plus one length value in 'ex' units.
A
Width using 'ex' units with a negative zero value, -0ex
  • The 'width' property sets a negative zero length value in 'ex' units.
A
Width using 'ex' units with a positive zero value, +0ex
  • The 'width' property sets a positive zero length value in 'ex' units.
A
Width using 'ex' units with a nominal value, 7.5ex
  • The 'width' property sets a nominal length value in 'ex' units.
A
Width using 'ex' units with a positive nominal value, +7.5ex
  • The 'width' property sets a positive nominal length value in 'ex' units.
A
Width using percentages with a minimum minus one value, -1%
  • The 'width' property sets a minimum minus one length value in percentages.
Width using percentages with a minimum value, 0%
  • The 'width' property sets a minimum length value in percentages.
Width using percentages with a minimum plus one value, 1%
  • The 'width' property sets a minimum plus one length value in percentages.
Width using percentages with a negative zero value, -0%
  • The 'width' property sets a negative zero length value in percentages.
Width using percentages with a positive zero value, +0%
  • The 'width' property sets a positive zero length value in percentages.
Width using percentages with a nominal value, 100%
  • The 'width' property sets a nominal length value in percentages.
Width using percentages with a positive nominal value, +100%
  • The 'width' property sets a positive nominal length value in percentages.
Width with a negative zero value and no units, -0
  • The 'width' property sets a negative zero length value with no units.
Width with a zero value and no units, 0
  • The 'width' property sets a zero length value with no units.
Width with a positive zero value and no units, +0
  • The 'width' property sets a positive zero length value with no units.
Width set to a value of 'auto'
  • The 'width' property applies a value of 'auto'.
Width set to 'inherit'
  • The 'width' property properly inherits the width value of the parent.
Width applied to elements with 'display' set to 'table-row-group'
  • The 'width' property does not apply to elements with 'display' set to 'table-row-group'.
Width applied to elements with 'display' set to 'table-header-group'
  • The 'width' property does not apply to elements with 'display' set to 'table-header-group'.
Width applied to elements with 'display' set to 'table-footer-group'
  • The 'width' property does not apply to elements with 'display' set to 'table-footer-group'.
Width applied to elements with 'display' set to 'table-row'
  • The 'width' property does not apply to elements with 'display' set to 'table-row'.
Width applied to elements with 'display' set to 'table-column-group'
  • The 'width' property applies to elements with 'display' set to 'table-column-group'.
Width applied to elements with 'display' set to 'table-column'
  • The 'width' property applies to elements with 'display' set to 'table-column'.
Width applied to elements with 'display' set to 'table-cell'
  • The 'width' property applies to elements with 'display' set to 'table-cell'.
Width applied to elements with 'display' set to 'inline'
  • The 'width' property does not apply to elements with 'display' set to 'inline'.
Width applied to elements with 'display' set to 'block'
  • The 'width' property applies to elements with 'display' set to 'block'.
Width applied to elements with 'display' set to 'list-item'
  • The 'width' property applies to elements with 'display' set to 'list-item'.
Width applied to elements with 'display' set to 'run-in'
  • The 'width' property applies to elements with 'display' set to 'run-in'.
Width applied to elements with 'display' set to 'inline-block'
  • The 'width' property applies to elements with 'display' set to 'inline-block'.
Width applied to elements with 'display' set to 'table'
  • The 'width' property applies to elements with 'display' set to 'table'.
Width applied to elements with 'display' set to 'inline-table'
  • The 'width' property applies to elements with 'display' set to 'inline-table'.
Width applied to elements with 'display' set to 'table-caption'
  • The 'width' property applies to elements with 'display' set to 'table-caption'.
Width applied to elements set to 'display: none'
  • Width can be applied to 'display: none' elements.
Width of non-replaced inline element should be the same as its content
  • Content width of a non-replaced inline element is that of the rendered content.
Calculating percentage based width off of the parent container
  • Percentage is calculated with respect to the width of the generated boxes containing block.
Calculating widths for absolutely positioned elements
  • Absolutely positioned elements whose containing block is based on a block-level element, the percentage is calculated with respect to the width of the padding box of that element.
Scaling replaced elements with a width specified can scale the image
  • Replaced elements width may be scaled by the user agent when the value of the property is not 'auto'.
GM
Width of containing block is determined by with of child
  • The containing block's width depends on this element's width because the resulting layout has not been defined in CSS2.1.
A
10.3 Calculating widths and margins
10.3.1 Inline, non-replaced elements
Inline non-replaced elements with 'auto' value for 'left', 'right', and 'margin-left'
  • Computed value of 'auto' for 'left', 'right', and 'margin-left' becomes a used value of '0'.
A
Inline non-replaced elements with 'auto' value for 'left', 'right', and 'margin-right'
  • Computed value of 'auto' for 'left', 'right', and 'margin-right' becomes a used value of '0'.
A
10.3.2 Inline, replaced elements
Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on inline replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
10.3.3 Block-level, non-replaced elements in normal flow
Solving for width of block-level non-replaced elements in normal flow
  • The equation; 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' is equal the width of containing block.
Solving for width of block-level non-replaced elements in normal flow when 'width' is 'auto'
  • When width is auto and the combination of border widths, padding widths, scrollbar widths, width, and non 'auto' margin widths are larger than the width of the containing block, the margin widths are treated as 0.
Solving over-constrained situation for block-level non-replaced elements in normal flow and direction is left-to-right
  • When direction is left-to-right, margin-right is ignored in an over-constrained situation.
Solving over-constrained situation for block-level non-replaced elements in normal flow and direction is right-to-left
  • When direction is right-to-left, margin-left is ignored in an over-constrained situation.
Solving width for block-level non-replaced elements in normal flow with single 'auto' value
  • If 'width' is set to 'auto', no other 'auto' values are set the 'width' is computed based the width of the containing block.
Solving width for block-level non-replaced elements in normal flow with multiple properties with 'auto' values
  • If 'width' is set to 'auto', any other 'auto' values become '0' and the 'width' is computed based on remaining space which includes any negative width.
Box centering with 'margin-left' and 'margin-right' set to auto
  • When 'margin-left' and 'margin-right' are set to auto and the element has a 'width' then the box will be centered.
A
Horizontal Formatting AG
margin-left - <hr> element
  • margin-left: 0 should apply to hr element since it is a block-level element
10.3.4 Block-level, replaced elements in normal flow
Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
AG
Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
AG
Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
AG
Replaced Elements AG
Replaced Elements G
Replaced Elements G
replaced elements - margin
  • Block-level, replaced elements with margin-left: auto and margin-right: auto should be centered within their respective parent block
10.3.5 Floating, non-replaced elements
Floating non-replaced elements with 'auto' left margin
  • If 'margin-left' is computed as 'auto' its used value is '0'.
Floating non-replaced elements with specified left margin
  • If 'margin-left' is not computed as 'auto' its used value is as specified.
Floating non-replaced elements with 'auto' right margin
  • If 'margin-right' is computed as 'auto' its used value is '0'.
Floating non-replaced elements with specified right margin
  • If 'margin-right' is not computed as 'auto' its used value is as specified.
Floating non-replaced elements with left and right margins as 'auto'
  • If both 'margin-left' and margin-right' are computed as 'auto' their used value is as '0'.
Floating non-replaced elements with 'auto' width
  • If 'width' computes to 'auto' then the used value of 'width' is 'shrink-to-fit'.
A
10.3.6 Floating, replaced elements
Floated replaced elements with 'auto' left margin
  • If 'margin-left' is computed as 'auto' its used value is '0'.
G
Floated replaced elements with specified left margin
  • If 'margin-left' is not computed as 'auto' its used value is as specified.
G
Floated replaced elements with 'auto' right margin
  • If 'margin-right' is computed as 'auto' its used value is '0'.
G
Floated replaced elements with specified right margin
  • If 'margin-right' is not computed as 'auto' its used value is as specified.
G
Floated replaced elements with left and right margins as 'auto'
  • If both 'margin-left' and margin-right' are computed as 'auto' their used value is as '0'.
G
Floated replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on floated replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Floated replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Floated replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
10.3.7 Absolutely positioned, non-replaced elements
Solving for 'right' on absolutely positioned non-replaced elements
  • When direction is left-to-right and 'left', 'width' and 'right' are 'auto', the width becomes shrink-to-fit and then solve for 'right'.
A
Solving for 'left' on absolutely positioned non-replaced elements
  • When direction is right-to-left and 'left', 'width' and 'right' are 'auto', the width becomes shrink-to-fit and then solve for 'left'.
A
Absolutely positioned non-replaced elements with 'margin-left' and 'margin-right' set to 'auto'
  • When 'left', 'width' and 'right' are not 'auto', the width becomes shrink-to-fit and set 'margin-left' and 'margin-right' to equal values.
A
Absolutely positioned non-replaced elements when both 'margin-left' and 'margin-right' are set to 'auto'
  • When direction is left-to-right and 'left', 'width' and 'right' are not 'auto', the width becomes shrink-to-fit and then solve for 'margin-right'.
A
Absolutely positioned non-replaced element when only 'margin-right' is 'auto'
  • When direction is left-to-right and 'left', 'width' and 'right' are not 'auto', the width becomes shrink-to-fit and then solve for 'margin-right'.
A
Solved for 'left' when absolutely positioned non-replaced elements has 'left' and 'width' as 'auto'
  • When 'left' and 'width' are 'auto' and 'right' is not 'auto' element solves for 'left'.
A
Absolutely positioned non-replaced elements when 'left' and 'right' are 'auto', 'width' is not 'auto' and 'direction' is left-to-right
  • When 'direction' is left-to-right and 'left' and 'right' are 'auto' and 'width' is not 'auto', solve for 'right'.
A
Absolutely positioned non-replaced elements when 'left' and 'right' are 'auto', 'width' is not 'auto' and 'direction' is right-to-left
  • When 'direction' is right-to-left and 'left' and 'right' are 'auto' and 'width' is not 'auto', solve for 'left'.
A
Solved for 'right' when absolutely positioned non-replaced elements has 'right' and 'width' as 'auto'
  • When 'right' and 'width' are 'auto' and 'left' is not 'auto' element solves for 'right'.
A
Solved for 'left' when absolutely positioned non-replaced elements has 'right' and 'width' not set to 'auto'
  • When 'left' is 'auto' and 'width' and 'right' are not 'auto' element solves for 'left'.
A
Solved for 'width' when absolutely positioned non-replaced elements has 'left' and 'right' not set to 'auto'
  • When 'width' is 'auto' and 'left' and 'right' are not 'auto' element solves for 'width'.
Solved for 'right' when absolutely positioned non-replaced elements has 'left' and 'width' not set to 'auto'
  • When 'right' is 'auto' and 'width' and 'left' are not 'auto' element solves for 'right'.
A
10.3.8 Absolutely positioned, replaced elements
Absolute replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right', 'left', 'right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right', 'left', 'right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right', 'left', 'right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right', 'left', 'right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right', 'left', 'right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right', 'left', 'right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right', 'right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right', 'right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right', 'right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right', 'right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right', 'right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right', 'right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as left-to-right, 'auto' specified for 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as right-to-left, 'auto' specified for 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as left-to-right, intrinsic width and over-constrained situation
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as left-to-right, percentage intrinsic width and over-constrained situation
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as left-to-right, percentage intrinsic width that cannot be resolved and is in an over-constrained situation
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
Absolute replaced elements with 'direction' as right-to-left, intrinsic width and over-constrained situation
  • Computed value of 'auto' for 'margin-left' or margin-right' on absolute replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Absolute replaced elements with 'direction' as right-to-left, percentage intrinsic width and over-constrained situation
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Absolute replaced elements with 'direction' as right-to-left, percentage intrinsic width that cannot be resolved and is in an over-constrained situation
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
10.3.9 'Inline-block', non-replaced elements in normal flow
Inline-block non-replaced elements shrink-to-fit
  • If 'width' is 'auto' then 'inline-block' elements shrink-to-fit.
A
Inline-block non-replaced elements with 'margin-left' and 'margin-right' set to 'auto'
  • When 'margin-left' and 'margin-right' are set to 'auto' the used value becomes '0'.
A
10.3.10 'Inline-block', replaced elements in normal flow
Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width
  • Computed value of 'auto' for 'margin-left' or margin-right' on inline-block replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'.
G
Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width
  • Percentage intrinsic widths are evaluated against the containing block's width.
G
Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width that cannot be resolved
  • Percentage intrinsic widths are evaluated against the containing block's width unless the containing block width depends on the element.
G
10.4 Minimum and maximum widths: 'min-width' and 'max-width'
Replaced Elements AG
Replaced Elements AG
height G
Max-width using pixels with a minimum minus one value, -1px
  • The 'max-width' property sets a minimum minus one length value in pixels.
Max-width using pixels with a minimum value, 0px
  • The 'max-width' property sets a minimum length value in pixels.
Max-width using pixels with a minimum plus one value, 1px
  • The 'max-width' property sets a minimum plus one length value in pixels.
Max-width using pixels with a negative zero value, -0px
  • The 'max-width' property sets a negative zero length value in pixels.
Max-width using pixels with a positive zero value, +0px
  • The 'max-width' property sets a positive zero length value in pixels.
Max-width using pixels with a nominal value, 96px
  • The 'max-width' property sets a nominal length value in pixels.
Max-width using pixels with a positive nominal value, +96px
  • The 'max-width' property sets a positive nominal length value in pixels.
Max-width using points with a minimum minus one value, -1pt
  • The 'max-width' property sets a minimum minus one length value in points.
Max-width using points with a minimum value, 0pt
  • The 'max-width' property sets a minimum length value in points.
Max-width using points with a minimum plus one value, 1pt
  • The 'max-width' property sets a minimum plus one length value in points.
Max-width using points with a negative zero value, -0pt
  • The 'max-width' property sets a negative zero length value in points.
Max-width using points with a positive zero value, +0pt
  • The 'max-width' property sets a positive zero length value in points.
Max-width using points with a nominal value, 72pt
  • The 'max-width' property sets a nominal length value in points.
Max-width using points with a positive nominal value, +72pt
  • The 'max-width' property sets a positive nominal length value in points.
Max-width using picas with a minimum minus one value, -1pc
  • The 'max-width' property sets a minimum minus one length value in picas.
Max-width using picas with a minimum value, 0pc
  • The 'max-width' property sets a minimum length value in picas.
Max-width using picas with a minimum plus one value, 1pc
  • The 'max-width' property sets a minimum plus one length value in picas.
Max-width using picas with a negative zero value, -0pc
  • The 'max-width' property sets a negative zero length value in picas.
Max-width using picas with a positive zero value, +0pc
  • The 'max-width' property sets a positive zero length value in picas.
Max-width using picas with a nominal value, 6pc
  • The 'max-width' property sets a nominal length value in picas.
Max-width using picas with a positive nominal value, +6pc
  • The 'max-width' property sets a positive nominal length value in picas.
Max-width using centimeters with a minimum minus one value, -1cm
  • The 'max-width' property sets a minimum minus one length value in centimeters.
Max-width using centimeters with a minimum value, 0cm
  • The 'max-width' property sets a minimum length value in centimeters.
Max-width using centimeters with a minimum plus one value, 1cm
  • The 'max-width' property sets a minimum plus one length value in centimeters.
Max-width using centimeters with a negative zero value, -0cm
  • The 'max-width' property sets a negative zero length value in centimeters.
Max-width using centimeters with a positive zero value, +0cm
  • The 'max-width' property sets a positive zero length value in centimeters.
Max-width using centimeters with a nominal value, 2.54cm
  • The 'max-width' property sets a nominal length value in centimeters.
Max-width using centimeters with a positive nominal value, +2.54cm
  • The 'max-width' property sets a positive nominal length value in centimeters.
Max-width using millimeters with a minimum minus one value, -1mm
  • The 'max-width' property sets a minimum minus one length value in millimeters.
Max-width using millimeters with a minimum value, 0mm
  • The 'max-width' property sets a minimum length value in millimeters.
Max-width using millimeters with a minimum plus one value, 1mm
  • The 'max-width' property sets a minimum plus one length value in millimeters.
Max-width using millimeters with a negative zero value, -0mm
  • The 'max-width' property sets a negative zero length value in millimeters.
Max-width using millimeters with a positive zero value, +0mm
  • The 'max-width' property sets a positive zero length value in millimeters.
Max-width using millimeters with a nominal value, 25.4mm
  • The 'max-width' property sets a nominal length value in millimeters.
Max-width using millimeters with a positive nominal value, +25.4mm
  • The 'max-width' property sets a positive nominal length value in millimeters.
Max-width using inches with a minimum minus one value, -1in
  • The 'max-width' property sets a minimum minus one length value in inches.
Max-width using inches with a minimum value, 0in
  • The 'max-width' property sets a minimum length value in inches.
Max-width using inches with a minimum plus one value, 1in
  • The 'max-width' property sets a minimum plus one length value in inches.
Max-width using inches with a negative zero value, -0in
  • The 'max-width' property sets a negative zero length value in inches.
Max-width using inches with a positive zero value, +0in
  • The 'max-width' property sets a positive zero length value in inches.
Max-width using inches with a nominal value, 3in
  • The 'max-width' property sets a nominal length value in inches.
Max-width using inches with a positive nominal value, +3in
  • The 'max-width' property sets a positive nominal length value in inches.
Max-width using 'em' units with a minimum minus one value, -1em
  • The 'max-width' property sets a minimum minus one length value in 'em' units.
A
Max-width using 'em' units with a minimum value, 0em
  • The 'max-width' property sets a minimum length value in 'em' units.
A
Max-width using 'em' units with a minimum plus one value, 1em
  • The 'max-width' property sets a minimum plus one length value in 'em' units.
A
Max-width using 'em' units with a negative zero value, -0em
  • The 'max-width' property sets a negative zero length value in 'em' units.
A
Max-width using 'em' units with a positive zero value, +0em
  • The 'max-width' property sets a positive zero length value in 'em' units.
A
Max-width using 'em' units with a nominal value, 6em
  • The 'max-width' property sets a nominal length value in 'em' units.
A
Max-width using 'em' units with a positive nominal value, +6em
  • The 'max-width' property sets a positive nominal length value in 'em' units.
A
Max-width using 'ex' units with a minimum minus one value, -1ex
  • The 'max-width' property sets a minimum minus one length value in 'ex' units.
A
Max-width using 'ex' units with a minimum value, 0ex
  • The 'max-width' property sets a minimum length value in 'ex' units.
A
Max-width using 'ex' units with a minimum plus one value, 1ex
  • The 'max-width' property sets a minimum plus one length value in 'ex' units.
A
Max-width using 'ex' units with a negative zero value, -0ex
  • The 'max-width' property sets a negative zero length value in 'ex' units.
A
Max-width using 'ex' units with a positive zero value, +0ex
  • The 'max-width' property sets a positive zero length value in 'ex' units.
A
Max-width using 'ex' units with a nominal value, 7.5ex
  • The 'max-width' property sets a nominal length value in 'ex' units.
A
Max-width using 'ex' units with a positive nominal value, +7.5ex
  • The 'max-width' property sets a positive nominal length value in 'ex' units.
A
Max-width using percentages with a minimum minus one value, -1%
  • The 'max-width' property sets a minimum minus one length value in percentages.
Max-width using percentages with a minimum value, 0%
  • The 'max-width' property sets a minimum length value in percentages.
Max-width using percentages with a minimum plus one value, 1%
  • The 'max-width' property sets a minimum plus one length value in percentages.
Max-width using percentages with a negative zero value, -0%
  • The 'max-width' property sets a negative zero length value in percentages.
Max-width using percentages with a positive zero value, +0%
  • The 'max-width' property sets a positive zero length value in percentages.
Max-width using percentages with a nominal value, 100%
  • The 'max-width' property sets a nominal length value in percentages.
Max-width using percentages with a positive nominal value, +100%
  • The 'max-width' property sets a positive nominal length value in percentages.
Max-width with a negative zero value and no units, -0
  • The 'max-width' property sets a negative zero length value with no units.
Max-width with a zero value and no units, 0
  • The 'max-width' property sets a zero length value with no units.
Max-width with a positive zero value and no units, +0
  • The 'max-width' property sets a positive zero length value with no units.
Max-width set to a value of 'none'
  • The 'max-width' property applies a value of 'none'.
Max-width set to 'inherit'
  • The 'max-width' property set to 'inherit' properly inherits the max-width value of the parent.
max-width - height and overflow
  • 'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width.
A
max-width - float and overflow
  • 'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width. A floated box should not become wider than its declared max-width.
A
max-width - height and overflow
  • 'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width.
A
max-width - float and overflow
  • 'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width.
A
Max-width applied to elements with 'display' set to 'table-row-group'
  • The 'max-width' property does not apply to elements with 'display' set to 'table-row-group'.
Max-width applied to elements with 'display' set to 'table-header-group'
  • The 'max-width' property does not apply to elements with 'display' set to 'table-header-group'.
Max-width applied to elements with 'display' set to 'table-footer-group'
  • The 'max-width' property does not apply to elements with 'display' set to 'table-footer-group'.
Max-width applied to elements with 'display' set to 'table-row'
  • The 'max-width' property does not apply to elements with 'display' set to 'table-row'.
Max-width applied to elements with 'display' set to 'table-column-group'
  • The 'max-width' property applies to elements with 'display' set to 'table-column-group'.
Max-width applied to elements with 'display' set to 'table-column'
  • The 'max-width' property applies to elements with 'display' set to 'table-column'.
Max-width applied to elements with 'display' set to 'table-cell'
  • The 'max-width' property applies to elements with 'display' set to 'table-cell'.
Max-width applied to elements with 'display' set to 'inline'
  • The 'max-width' property does not apply to elements with 'display' set to 'inline'.
Max-width applied to elements with 'display' set to 'block'
  • The 'max-width' property applies to elements with 'display' set to 'block'.
Max-width applied to elements with 'display' set to 'list-item'
  • The 'max-width' property applies to elements with 'display' set to 'list-item'.
Max-width applied to elements with 'display' set to 'run-in'
  • The 'max-width' property applies to elements with 'display' set to 'run-in'.
Max-width applied to elements with 'display' set to 'inline-block'
  • The 'max-width' property applies to elements with 'display' set to 'inline-block'.
Max-width applied to elements with 'display' set to 'table'
  • The 'max-width' property applies to elements with 'display' set to 'table'.
Max-width applied to elements with 'display' set to 'inline-table'
  • The 'max-width' property applies to elements with 'display' set to 'inline-table'.
Max-width applied to elements with 'display' set to 'table-caption'
  • The 'max-width' property applies to elements with 'display' set to 'table-caption'.
Max-Width applied to none
  • Max-Width can be applied to none elements.
Using percentages with 'max-width' relative to the containing block
  • The percentage is calculated in relation to the containing block.
Percentage based value for 'max-width' contained by box with a negative 'width'
  • If the containing block's width is negative, the used value is zero.
Max-width in constrained situation
  • If the containing block's width depends on this element's width, then the resulting layout is undefined.
Min-width using pixels with a minimum minus one value, -1px
  • The 'min-width' property sets a minimum minus one length value in pixels.
Min-width using pixels with a minimum value, 0px
  • The 'min-width' property sets a minimum length value in pixels.
Min-width using pixels with a minimum plus one value, 1px
  • The 'min-width' property sets a minimum plus one length value in pixels.
Min-width using pixels with a negative zero value, -0px
  • The 'min-width' property sets a negative zero length value in pixels.
Min-width using pixels with a positive zero value, +0px
  • The 'min-width' property sets a positive zero length value in pixels.
Min-width using pixels with a nominal value, 96px
  • The 'min-width' property sets a nominal length value in pixels.
Min-width using pixels with a positive nominal value, +96px
  • The 'min-width' property sets a positive nominal length value in pixels.
Min-width using points with a minimum minus one value, -1pt
  • The 'min-width' property sets a minimum minus one length value in points.
Min-width using points with a minimum value, 0pt
  • The 'min-width' property sets a minimum length value in points.
Min-width using points with a minimum plus one value, 1pt
  • The 'min-width' property sets a minimum plus one length value in points.
Min-width using points with a negative zero value, -0pt
  • The 'min-width' property sets a negative zero length value in points.
Min-width using points with a positive zero value, +0pt
  • The 'min-width' property sets a positive zero length value in points.
Min-width using points with a nominal value, 72pt
  • The 'min-width' property sets a nominal length value in points.
Min-width using points with a positive nominal value, +72pt
  • The 'min-width' property sets a positive nominal length value in points.
Min-width using picas with a minimum minus one value, -1pc
  • The 'min-width' property sets a minimum minus one length value in picas.
Min-width using picas with a minimum value, 0pc
  • The 'min-width' property sets a minimum length value in picas.
Min-width using picas with a minimum plus one value, 1pc
  • The 'min-width' property sets a minimum plus one length value in picas.
Min-width using picas with a negative zero value, -0pc
  • The 'min-width' property sets a negative zero length value in picas.
Min-width using picas with a positive zero value, +0pc
  • The 'min-width' property sets a positive zero length value in picas.
Min-width using picas with a nominal value, 6pc
  • The 'min-width' property sets a nominal length value in picas.
Min-width using picas with a positive nominal value, +6pc
  • The 'min-width' property sets a positive nominal length value in picas.
Min-width using centimeters with a minimum minus one value, -1cm
  • The 'min-width' property sets a minimum minus one length value in centimeters.
Min-width using centimeters with a minimum value, 0cm
  • The 'min-width' property sets a minimum length value in centimeters.
Min-width using centimeters with a minimum plus one value, 1cm
  • The 'min-width' property sets a minimum plus one length value in centimeters.
Min-width using centimeters with a negative zero value, -0cm
  • The 'min-width' property sets a negative zero length value in centimeters.
Min-width using centimeters with a positive zero value, +0cm
  • The 'min-width' property sets a positive zero length value in centimeters.
Min-width using centimeters with a nominal value, 2.54cm
  • The 'min-width' property sets a nominal length value in centimeters.
Min-width using centimeters with a positive nominal value, +2.54cm
  • The 'min-width' property sets a positive nominal length value in centimeters.
Min-width using millimeters with a minimum minus one value, -1mm
  • The 'min-width' property sets a minimum minus one length value in millimeters.
Min-width using millimeters with a minimum value, 0mm
  • The 'min-width' property sets a minimum length value in millimeters.
Min-width using millimeters with a minimum plus one value, 1mm
  • The 'min-width' property sets a minimum plus one length value in millimeters.
Min-width using millimeters with a negative zero value, -0mm
  • The 'min-width' property sets a negative zero length value in millimeters.
Min-width using millimeters with a positive zero value, +0mm
  • The 'min-width' property sets a positive zero length value in millimeters.
Min-width using millimeters with a nominal value, 25.4mm
  • The 'min-width' property sets a nominal length value in millimeters.
Min-width using millimeters with a positive nominal value, +25.4mm
  • The 'min-width' property sets a positive nominal length value in millimeters.
Min-width using inches with a minimum minus one value, -1in
  • The 'min-width' property sets a minimum minus one length value in inches.
Min-width using inches with a minimum value, 0in
  • The 'min-width' property sets a minimum length value in inches.
Min-width using inches with a minimum plus one value, 1in
  • The 'min-width' property sets a minimum plus one length value in inches.
Min-width using inches with a negative zero value, -0in
  • The 'min-width' property sets a negative zero length value in inches.
Min-width using inches with a positive zero value, +0in
  • The 'min-width' property sets a positive zero length value in inches.
Min-width using inches with a nominal value, 3in
  • The 'min-width' property sets a nominal length value in inches.
Min-width using inches with a positive nominal value, +3in
  • The 'min-width' property sets a positive nominal length value in inches.
Min-width using 'em' units with a minimum minus one value, -1em
  • The 'min-width' property sets a minimum minus one length value in 'em' units.
A
Min-width using 'em' units with a minimum value, 0em
  • The 'min-width' property sets a minimum length value in 'em' units.
A
Min-width using 'em' units with a minimum plus one value, 1em
  • The 'min-width' property sets a minimum plus one length value in 'em' units.
A
Min-width using 'em' units with a negative zero value, -0em
  • The 'min-width' property sets a negative zero length value in 'em' units.
A
Min-width using 'em' units with a positive zero value, +0em
  • The 'min-width' property sets a positive zero length value in 'em' units.
A
Min-width using 'em' units with a nominal value, 6em
  • The 'min-width' property sets a nominal length value in 'em' units.
A
Min-width using 'em' units with a positive nominal value, +6em
  • The 'min-width' property sets a positive nominal length value in 'em' units.
A
Min-width using 'ex' units with a minimum minus one value, -1ex
  • The 'min-width' property sets a minimum minus one length value in 'ex' units.
A
Min-width using 'ex' units with a minimum value, 0ex
  • The 'min-width' property sets a minimum length value in 'ex' units.
A
Min-width using 'ex' units with a minimum plus one value, 1ex
  • The 'min-width' property sets a minimum plus one length value in 'ex' units.
A
Min-width using 'ex' units with a negative zero value, -0ex
  • The 'min-width' property sets a negative zero length value in 'ex' units.
A
Min-width using 'ex' units with a positive zero value, +0ex
  • The 'min-width' property sets a positive zero length value in 'ex' units.
A
Min-width using 'ex' units with a nominal value, 7.5ex
  • The 'min-width' property sets a nominal length value in 'ex' units.
A
Min-width using 'ex' units with a positive nominal value, +7.5ex
  • The 'min-width' property sets a positive nominal length value in 'ex' units.
A
Min-width using percentages with a minimum minus one value, -1%
  • The 'min-width' property sets a minimum minus one length value in percentages.
Min-width using percentages with a minimum value, 0%
  • The 'min-width' property sets a minimum length value in percentages.
Min-width using percentages with a minimum plus one value, 1%
  • The 'min-width' property sets a minimum plus one length value in percentages.
Min-width using percentages with a negative zero value, -0%
  • The 'min-width' property sets a negative zero length value in percentages.
Min-width using percentages with a positive zero value, +0%
  • The 'min-width' property sets a positive zero length value in percentages.
Min-width using percentages with a nominal value, 100%
  • The 'min-width' property sets a nominal length value in percentages.
Min-width using percentages with a positive nominal value, +100%
  • The 'min-width' property sets a positive nominal length value in percentages.
Min-width with a negative zero value and no units, -0
  • The 'min-width' property sets a negative zero length value with no units.
Min-width with a zero value and no units, 0
  • The 'min-width' property sets a zero length value with no units.
Min-width with a positive zero value and no units, +0
  • The 'min-width' property sets a positive zero length value with no units.
Min-width set to inherit
  • The 'min-width' property properly inherits the min-width value of the parent.
Min-width applied to elements with 'display' set to 'table-row-group'
  • The 'min-width' property does not apply to elements with 'display' set to 'table-row-group'.
Min-width applied to elements with 'display' set to 'table-header-group'
  • The 'min-width' property does not apply to elements with 'display' set to 'table-header-group'.
Min-width applied to elements with 'display' set to 'table-footer-group'
  • The 'min-width' property does not apply to elements with 'display' set to 'table-footer-group'.
Min-width applied to elements with 'display' set to 'table-row'
  • The 'min-width' property does not apply to elements with 'display' set to 'table-row'.
Min-width applied to elements with 'display' set to 'table-column-group'
  • The 'min-width' property applies to elements with 'display' set to 'table-column-group'.
Min-width applied to elements with 'display' set to 'table-column'
  • The 'min-width' property applies to elements with 'display' set to 'table-column'.
Min-width applied to elements with 'display' set to 'table-cell'
  • The 'min-width' property applies to elements with 'display' set to 'table-cell'.
Min-width applied to elements with 'display' set to 'inline'
  • The 'min-width' property does not apply to elements with 'display' set to 'inline'.
Min-width applied to elements with 'display' set to 'block'
  • The 'min-width' property applies to elements with 'display' set to 'block'.
Min-width applied to elements with 'display' set to 'list-item'
  • The 'min-width' property applies to elements with 'display' set to 'list-item'.
Min-width applied to elements with 'display' set to 'run-in'
  • The 'min-width' property applies to elements with 'display' set to 'run-in'.
Min-width applied to elements with 'display' set to 'inline-block'
  • The 'min-width' property applies to elements with 'display' set to 'inline-block'.
Min-width applied to elements with 'display' set to 'table'
  • The 'min-width' property applies to elements with 'display' set to 'table'.
Min-width applied to elements with 'display' set to 'inline-table'
  • The 'min-width' property applies to elements with 'display' set to 'inline-table'.
Min-width applied to elements with 'display' set to 'table-caption'
  • The 'min-width' property applies to elements with 'display' set to 'table-caption'.
Min-Width applied to none
  • Min-Width can be applied to none elements.
Using percentages with 'min-width' relative to the containing block
  • The percentage is calculated in relation to the containing block.
Percentage based value for 'min-width' contained by box with a negative 'width'
  • If the containing block's width is negative, the used value is zero.
Using 'min-width' with 'width' dependent on the containing block
  • If the containing block's width depends on this element's width, then the resulting layout is undefined.
10.5 Content height: the 'height' property
height G
height G
height G
Height using pixels with a minimum minus one value, -1px
  • The 'height' property sets a minimum minus one length value in pixels is invalid and resets its value to 'auto'.
I
Height using pixels with a minimum value, 0px
  • The 'height' property sets a minimum length value in pixels.
Height using pixels with a minimum plus one value, 1px
  • The 'height' property sets a minimum plus one length value in pixels.
Height using pixels with a negative zero value, -0px
  • The 'height' property sets a negative zero length value in pixels.
Height using pixels with a positive zero value, +0px
  • The 'height' property sets a positive zero length value in pixels.
Height using pixels with a nominal value, 96px
  • The 'height' property sets a nominal length value in pixels.
Height using pixels with a positive nominal value, +96px
  • The 'height' property sets a positive nominal length value in pixels.
Height using points with a minimum minus one value, -1pt
  • The 'height' property sets a minimum minus one length value in points is invalid and resets its value to 'auto'.
I
Height using points with a minimum value, 0pt
  • The 'height' property sets a minimum length value in points.
Height using points with a minimum plus one value, 1pt
  • The 'height' property sets a minimum plus one length value in points.
Height using points with a negative zero value, -0pt
  • The 'height' property sets a negative zero length value in points.
Height using points with a positive zero value, +0pt
  • The 'height' property sets a positive zero length value in points.
Height using points with a nominal value, 72pt
  • The 'height' property sets a nominal length value in points.
Height using points with a positive nominal value, +72pt
  • The 'height' property sets a positive nominal length value in points.
Height using picas with a minimum minus one value, -1pc
  • The 'height' property sets a minimum minus one length value in picas is invalid and resets its value to 'auto'.
I
Height using picas with a minimum value, 0pc
  • The 'height' property sets a minimum length value in picas.
Height using picas with a minimum plus one value, 1pc
  • The 'height' property sets a minimum plus one length value in picas.
Height using picas with a negative zero value, -0pc
  • The 'height' property sets a negative zero length value in picas.
Height using picas with a positive zero value, +0pc
  • The 'height' property sets a positive zero length value in picas.
Height using picas with a nominal value, 6pc
  • The 'height' property sets a nominal length value in picas.
Height using picas with a positive nominal value, +6pc
  • The 'height' property sets a positive nominal length value in picas.
Height using centimeters with a minimum minus one value, -1cm
  • The 'height' property sets a minimum minus one length value in centimeters is invalid and resets its value to 'auto'.
I
Height using centimeters with a minimum value, 0cm
  • The 'height' property sets a minimum length value in centimeters.
Height using centimeters with a minimum plus one value, 1cm
  • The 'height' property sets a minimum plus one length value in centimeters.
Height using centimeters with a negative zero value, -0cm
  • The 'height' property sets a negative zero length value in centimeters.
Height using centimeters with a positive zero value, +0cm
  • The 'height' property sets a positive zero length value in centimeters.
Height using centimeters with a nominal value, 2.54cm
  • The 'height' property sets a nominal length value in centimeters.
Height using centimeters with a positive nominal value, +2.54cm
  • The 'height' property sets a positive nominal length value in centimeters.
Height using millimeters with a minimum minus one value, -1mm
  • The 'height' property sets a minimum minus one length value in millimeters is invalid and resets its value to 'auto'.
I
Height using millimeters with a minimum value, 0mm
  • The 'height' property sets a minimum length value in millimeters.
Height using millimeters with a minimum plus one value, 1mm
  • The 'height' property sets a minimum plus one length value in millimeters.
Height using millimeters with a negative zero value, -0mm
  • The 'height' property sets a negative zero length value in millimeters.
Height using millimeters with a positive zero value, +0mm
  • The 'height' property sets a positive zero length value in millimeters.
Height using millimeters with a nominal value, 25.4mm
  • The 'height' property sets a nominal length value in millimeters.
Height using millimeters with a positive nominal value, +25.4mm
  • The 'height' property sets a positive nominal length value in millimeters.
Height using inches with a minimum minus one value, -1in
  • The 'height' property sets a minimum minus one length value in inches is invalid and resets its value to 'auto'.
I
Height using inches with a minimum value, 0in
  • The 'height' property sets a minimum length value in inches.
Height using inches with a minimum plus one value, 1in
  • The 'height' property sets a minimum plus one length value in inches.
Height using inches with a negative zero value, -0in
  • The 'height' property sets a negative zero length value in inches.
Height using inches with a positive zero value, +0in
  • The 'height' property sets a positive zero length value in inches.
Height using inches with a nominal value, 3in
  • The 'height' property sets a nominal length value in inches.
Height using inches with a positive nominal value, +3in
  • The 'height' property sets a positive nominal length value in inches.
Height using 'em' units with a minimum minus one value, -1em
  • The 'height' property sets a minimum minus one length value in 'em' units is invalid and resets its value to 'auto'.
AI
Height using 'em' units with a minimum value, 0em
  • The 'height' property sets a minimum length value in 'em' units.
A
Height using 'em' units with a minimum plus one value, 1em
  • The 'height' property sets a minimum plus one length value in 'em' units.
A
Height using 'em' units with a negative zero value, -0em
  • The 'height' property sets a negative zero length value in 'em' units.
A
Height using 'em' units with a positive zero value, +0em
  • The 'height' property sets a positive zero length value in 'em' units.
A
Height using 'em' units with a nominal value, 6em
  • The 'height' property sets a nominal length value in 'em' units.
A
Height using 'em' units with a positive nominal value, +6em
  • The 'height' property sets a positive nominal length value in 'em' units.
A
Height using 'ex' units with a minimum minus one value, -1ex
  • The 'height' property sets a minimum minus one length value in 'ex' units is invalid and resets its value to 'auto'.
AI
Height using 'ex' units with a minimum value, 0ex
  • The 'height' property sets a minimum length value in 'ex' units.
A
Height using 'ex' units with a minimum plus one value, 1ex
  • The 'height' property sets a minimum plus one length value in 'ex' units.
A
Height using 'ex' units with a negative zero value, -0ex
  • The 'height' property sets a negative zero length value in 'ex' units.
A
Height using 'ex' units with a positive zero value, +0ex
  • The 'height' property sets a positive zero length value in 'ex' units.
A
Height using 'ex' units with a nominal value, 7.5ex
  • The 'height' property sets a nominal length value in 'ex' units.
A
Height using 'ex' units with a positive nominal value, +7.5ex
  • The 'height' property sets a positive nominal length value in 'ex' units.
A
Height using percentages with a minimum minus one value, -1%
  • The 'height' property sets a minimum minus one length value in percentages is invalid and resets its value to 'auto'.
I
Height using percentages with a minimum value, 0%
  • The 'height' property sets a minimum length value in percentages.
Height using percentages with a minimum plus one value, 1%
  • The 'height' property sets a minimum plus one length value in percentages.
Height using percentages with a negative zero value, -0%
  • The 'height' property sets a negative zero length value in percentages.
Height using percentages with a positive zero value, +0%
  • The 'height' property sets a positive zero length value in percentages.
Height using percentages with a nominal value, 100%
  • The 'height' property sets a nominal length value in percentages.
Height using percentages with a positive nominal value, +100%
  • The 'height' property sets a positive nominal length value in percentages.
Height with a negative zero value and no units, -0
  • The 'height' property sets a negative zero length value with no units.
Height with a zero value and no units, 0
  • The 'height' property sets a zero length value with no units.
Height with a positive zero value and no units, +0
  • The 'height' property sets a positive zero length value with no units.
Height set to a value of auto
  • The 'height' property applies a value of auto.
Height set to inherit
  • The 'height' property properly inherits the height value of the parent.
Height applied to elements with 'display' set to 'table-row-group'
  • The 'height' property applies to elements with 'display' set to 'table-row-group'.
Height applied to elements with 'display' set to 'table-header-group'
  • The 'height' property applies to elements with 'display' set to 'table-header-group'.
Height applied to elements with 'display' set to 'table-footer-group'
  • The 'height' property applies to elements with 'display' set to 'table-footer-group'.
Height applied to elements with 'display' set to 'table-row'
  • The 'height' property applies to elements with 'display' set to 'table-row'.
Height applied to elements with 'display' set to 'table-column-group'
  • The 'height' property does not to elements with 'display' set to 'table-column-group'.
Height applied to elements with 'display' set to 'table-column'
  • The 'height' property does not to elements with 'display' set to 'table-column'.
Height applied to elements with 'display' set to 'table-cell'
  • The 'height' property applies to elements with 'display' set to 'table-cell'.
Height applied to elements with 'display' set to 'inline'
  • The 'height' property does not apply to elements with 'display' set to 'inline'.
Height applied to elements with 'display' set to 'block'
  • The 'height' property applies to elements with 'display' set to 'block'.
Height applied to elements with 'display' set to 'list-item'
  • The 'height' property applies to elements with 'display' set to 'list-item'.
Height applied to elements with 'display' set to 'run-in'
  • The 'height' property applies to elements with 'display' set to 'run-in'.
Height applied to elements with 'display' set to 'inline-block'
  • The 'height' property applies to elements with 'display' set to 'inline-block'.
Height applied to elements with 'display' set to 'table'
  • The 'height' property applies to elements with 'display' set to 'table'.
Height applied to elements with 'display' set to 'inline-table'
  • The 'height' property applies to elements with 'display' set to 'inline-table'.
Height applied to elements with 'display' set to 'table-caption'
  • The 'height' property applies to elements with 'display' set to 'table-caption'.
Height applied to elements set to 'display: none'
  • Height can be applied to 'display: none' elements.
Percentage height computed to containing block
  • A percentage height is calculated using the height of the containing block.
Percentage based 'height' computes to 'auto' when containing block has no specified height
  • A percentage height is computed to 'auto' when the element is not absolutely positioned and there is no 'height' explicitly set on the containing block.
Percentage based 'height' on the root element
  • A percentage 'height' on the root element is relative to the initial containing block.
Resolving container heights when they contain absolutely positioned elements with percentage based heights
  • The 'height' of the containing block of an absolutely positioned element is independent of the size of the element itself.
page-break-inside:auto
  • The 'auto' value of the 'page-break-inside' property neither forces nor forbids a page break inside the box.
P
10.6 Calculating heights and margins
10.6.1 Inline, non-replaced elements
Inline Elements A
Inline non-replaced elements and padding
  • The padding starts at the top and bottom of the content area not the 'line-height'.
A
Inline non-replaced elements and border
  • The border starts at the top and bottom of the content area not the 'line-height'.
A
10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements
Block replaced elements with 'margin-top' and 'margin-bottom' as 'auto'
  • A block replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.
G
Block replaced elements relying on intrinsic height dimensions
  • The 'height' is the intrinsic height when an block replaced element with and intrinsic height has a 'height' and 'width' computed as 'auto'.
G
Block replaced elements with intrinsic ratios and 'height' set to 'auto'
  • The 'height' is the used width divided by the ratio when an block replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified.
G
Block replaced elements without intrinsic ratios and 'height' set to 'auto'
  • For block replaced elements the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Block replaced elements with percentage based intrinsic height
  • A block replaced elements with a percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Block replaced elements with percentage based intrinsic height that cannot be resolved
  • A block replaced elements with a percentage height that cannot be resolved has no intrinsic height.
Replaced Elements G
Replaced Elements G
Replaced Elements AG
Replaced Elements AG
Floated replaced elements with 'margin-top' and 'margin-bottom' as 'auto'
  • A floated replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.
G
Floated replaced elements relying on intrinsic height dimensions
  • The 'height' is the intrinsic height when an floated replaced element with and intrinsic height has a 'height' and 'width' computed as 'auto'.
G
Floating replaced elements with intrinsic ratios and 'height' set to 'auto'
  • The 'height' is the used width divided by the ratio when an floated replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified.
G
Floated replaced elements without intrinsic ratios and 'height' set to 'auto'
  • For floated replaced elements the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Floated replaced elements with percentage based intrinsic height
  • A floated replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Floated replaced elements with percentage based intrinsic height that cannot be resolved
  • A floated replaced elements with a percentage height that cannot be resolved has no intrinsic height.
Inline-block replaced elements with 'margin-top' and 'margin-bottom' as 'auto'
  • An inline-block replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.
G
Inline-block replaced elements relying on intrinsic height dimensions
  • The 'height' is the intrinsic height when an inline-block replaced element with and intrinsic height has a 'height' and 'width' computed as 'auto'.
G
Inline-block replaced elements with intrinsic ratios and 'height' set to 'auto'
  • The 'height' is the used width divided by the ratio when an inline-block replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified.
G
Inline-block replaced elements without intrinsic ratios and 'height' set to 'auto'
  • For inline-block replaced elements the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Inline-block replaced elements with percentage based intrinsic height
  • An inline-block replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Inline-block replaced elements with percentage based intrinsic height that cannot be resolved
  • An inline-block replaced elements with a percentage height that cannot be resolved has no intrinsic height.
Inline replaced elements with 'margin-top' and 'margin-bottom' as 'auto'
  • An inline replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.
G
Inline replaced elements relying on intrinsic height dimensions
  • The 'height' is the intrinsic height when an inline replaced element with and intrinsic height has a 'height' and 'width' computed as 'auto'.
G
Inline replaced elements with intrinsic ratios and 'height' set to 'auto'
  • The 'height' is the used width divided by the ratio when an inline replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified.
G
Inline replaced elements without intrinsic ratios and 'height' set to 'auto'
  • For inline replaced elements the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Inline replaced elements with percentage based intrinsic height
  • An inline replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Inline replaced elements with percentage based intrinsic height that cannot be resolved
  • An inline replaced elements with a percentage height that cannot be resolved has no intrinsic height.
10.6.3 Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'
Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and margins top and bottom are 'auto'
  • The margin top and bottom used values are '0' for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and margin top and bottom both are 'auto'.
Block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible'
  • The margin top and bottom used values are '0' for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and margin top and bottom both are 'auto'.
Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto'
  • The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'.
Block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and 'height' is 'auto'
  • The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' does not compute to 'visible'.
Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto' adjust based on the line box height
  • The 'height' is the distance from the topmost to the bottommost line box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'.
A
Block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and 'height' is 'auto' adjust based on the line box height
  • The 'height' is the distance from the topmost to the bottommost line box when a block-level non-replaced element is in normal flow and 'overflow' does not compute to 'visible'.
A
Height determination for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and elements' margins collapse
  • The 'height' is the distance between the top border edge of the top most block-level child box that doesn't have margins collapsed through it, and the bottom border edge of the bottommost block-level child that doesn't have margins collapsed through it. When a block-level non-replaced element is in normal flow, 'overflow' computes to 'visible' and the 'height' is 'auto'.
Height determination for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and elements' margins collapse
  • The 'height' is the distance between the top border edge of the top most block-level child box that doesn't have margins collapsed, and the bottom border edge of the bottommost block-level child that doesn't have margins collapsed. When a block-level non-replaced element is in normal flow, 'overflow' does not compute to 'visible' but has been propagated to the viewport and the 'height' is 'auto'.
Height determination for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and elements' margins do not collapse
  • When a block-level non-replaced element is in normal flow, 'overflow' computes to 'visible', the 'height' is 'auto' and top and bottom margins do not collapse. The 'height' is the sized from the top of the topmost margin edge of the content to the bottom of the bottom most margin edge of the content.
Height determination for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and elements' margins do not collapse
  • When a block-level non-replaced element is in normal flow, 'overflow' does not compute to 'visible', the 'height' is 'auto' and top and bottom margins do not collapse. The 'height' is the sized from the top of the topmost margin edge of the content to the bottom of the bottom most margin edge of the content.
Floated children are ignored for 'height' on block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'
  • A floated child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow.
Floated children are ignored for 'height' on block-level non-replaced elements in normal flow when 'overflow' does not computes to 'visible'
  • A floated child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow.
An absolutely positioned child elements' 'height' is ignored for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'
  • An absolutely positioned child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow.
An absolutely positioned child elements' 'height' is ignored for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible'
  • An absolutely positioned child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow.
A relative positioned child elements' offset is ignored for 'height' on a block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'
  • A relative positioned child elements' offset is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow.
A relative positioned child elements' offset is ignored for 'height' on a block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible'
  • A relative positioned child elements' offset is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow.
float AG
float
Margin collapsing with clearance - margins of a 'collapsed through' box with clearance do not collapse with parent block's bottom margin
  • When an element has had clearance applied to it and its own margins collapse, these margins collapse with the adjoining margins of following siblings but the resulting margin does not collapse with the bottom margin of the parent block
Margin collapsing with clearance - margins of a 'collapsed through' box with clearance do not collapse with parent block's bottom margin
  • When an element has had clearance applied to it and its own margins collapse, these margins do not collapse with the bottom margin of the parent block
Margin collapsing with clearance - clearance may be negative
  • Clearance is applied before the top margin of the element with clear set. Clearance can be negative. Clearance stops the collapsing of the element's margins with the preceding siblings' margins and with the parent block's bottom margin.
10.6.4 Absolutely positioned, non-replaced elements
Absolutely positioned, non-replaced elements, static position of fixed element
  • The calculation of static position is based on initial containing block when there is a fixed positioned element.
Absolutely positioned, non-replaced elements, shrinks-to-fit height
  • The used value for absolutely positioned elements shrinks-to-fit height.
A
Absolutely positioned, non-replaced elements, vertical centering
  • An element is vertically centered when both 'margin-top' and 'margin-bottom' have equal values, when 'top', 'bottom' and 'height' are all are not auto and 'margin-top' and 'margin-bottom' are both 'auto'.
Absolutely positioned, non-replaced elements, 'margin-top' set to 'auto'
  • When 'top', 'bottom' and 'height' are all are not 'auto', 'margin-top' is 'auto' and 'margin-bottom' is not 'auto'. Then 'margin-top' becomes the remainder of the height of the containing box.
Absolutely positioned, non-replaced elements, 'margin-bottom' set to 'auto'
  • When 'top', 'bottom' and 'height' are all are not 'auto', 'margin-top' is not 'auto' and 'margin-bottom' is 'auto'. Then 'margin-bottom' becomes the remainder of the height of the containing box.
Absolutely positioned, non-replaced elements, over-constrained
  • The 'bottom' value is ignored and the equation solves for the bottom value, when the values for 'top', 'bottom', 'height', 'margin-top', 'margin-bottom' add up to more than the containing blocks height.
Absolutely positioned, non-replaced elements, shrink-to-fit solve for top
  • Verify that height is based on the overall height of the content, 'margin-top', 'auto' is set to '0' and solve for 'top', when 'top' and 'height' are both 'auto' and 'bottom' is not 'auto'.
A
Absolutely positioned, non-replaced elements, 'top' set to static position
  • When 'top' is set to the static position and any 'auto' values for top and bottom margin are set to '0', when 'top' and 'bottom' are 'auto' and 'height' is not 'auto'.
Absolutely positioned, non-replaced elements, height is shrink-to-fit
  • The 'height' is based on the content height, 'auto' values for 'margin-top' and 'margin-bottom' are set to '0' when 'height' and 'bottom' are 'auto' and 'top' is not 'auto'.
A
Absolutely positioned, non-replaced elements, 'margin-top' and 'margin-bottom' set to '0'
  • The 'auto' values for 'margin-top' and 'margin-bottom' are set to '0', when 'top', 'height' and 'bottom' are all not auto.
Absolutely positioned, non-replaced elements, 'height' based on 'top' and 'bottom' positions
  • The 'auto' values on 'margin-top', 'margin-bottom' are set to '0' and the 'height' is the remaining space between the 'top' and 'bottom' positions, when 'height' is 'auto' and 'top' and 'bottom' are both not 'auto'.
Absolutely positioned, non-replaced elements, solve for 'bottom'
  • When 'margin-top' and 'margin-bottom' are set to '0' the 'bottom' value resolves to the remaining space within the containing block.
Max-height on absolutely positioned, non-replaced elements, static position of fixed element
  • The calculation of static position is based on initial containing block when there is a fixed positioned element.
Max-height on absolutely positioned, non-replaced elements, shrinks-to-fit height
  • The used value for absolutely positioned elements shrinks-to-fit height.
A
Max-height on absolutely positioned, non-replaced elements, 'margin-bottom' set to 'auto'
  • When 'top', 'bottom' and 'height' are all are not 'auto', 'margin-top' is not 'auto' and 'margin-bottom' is 'auto'. Then 'margin-bottom' becomes the remainder of the height of the containing box.
Max-height on absolutely positioned, non-replaced elements, over-constrained
  • The 'bottom' value is ignored and the equation solves for the bottom value, when the values for 'top', 'bottom', 'height', 'margin-top', 'margin-bottom' add up to more than the containing blocks height.
Max-height on absolutely positioned, non-replaced elements, shrink-to-fit solve for top
  • The height is based on the overall height of the content, 'margin-top', 'auto' is set to '0' and solve for 'top', when 'top' and 'height' are both 'auto' and 'bottom' is not 'auto'.
A
Max-height on absolutely positioned, non-replaced elements, 'top' set to static position
  • When 'top' is set to the static position and any 'auto' values for top and bottom margin are set to '0', when 'top' and 'bottom' are 'auto' and 'height' is not 'auto'.
Max-height on absolutely positioned, non-replaced elements, height is shrink-to-fit
  • The 'height' is based on the content height, 'auto' values for 'margin-top' and 'margin-bottom' are set to '0' when 'height' and 'bottom' are 'auto' and 'top' is not 'auto'.
A
Max-height on absolutely positioned, non-replaced elements, solve for 'bottom'
  • When 'margin-top' and 'margin-bottom' are set to '0' the 'bottom' value resolves to the remaining space within the containing block.
10.6.5 Absolutely positioned, replaced elements
Absolute replaced elements with 'margin-top' and 'margin-bottom' as 'auto'
  • An absolutely positioned replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.
G
Absolute replaced elements relying on intrinsic height dimensions
  • The 'height' is the intrinsic height when an absolutely positioned replaced element with and intrinsic height has a 'height' and 'width' computed as 'auto'.
G
Absolute replaced elements with intrinsic ratios and 'height' set to 'auto'
  • The 'height' is the used width divided by the ratio when an absolutely positioned replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified.
G
Absolute replaced elements without intrinsic ratios and 'height' set to 'auto'
  • For an absolutely positioned replaced element the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Absolute replaced elements with percentage based intrinsic height
  • An absolutely positioned replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Absolute replaced elements with percentage based intrinsic height that cannot be resolved
  • An absolutely positioned replaced element with a percentage height that cannot be resolved has no intrinsic height.
Absolute replaced elements with 'margin-top', 'margin-bottom' and 'bottom' as 'auto'
  • An absolutely positioned replaced elements' used value of 'bottom', 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.
G
Absolute replaced elements relying on intrinsic height dimensions and 'bottom' set to 'auto'
  • The 'height' is the intrinsic height when an absolutely positioned replaced element with and intrinsic height has a 'height', 'width' and 'bottom' computed as 'auto'.
G
Absolute replaced elements with intrinsic ratios, 'height' and 'bottom' set to 'auto'
  • The 'height' is the used width divided by the ratio when an absolutely positioned replaced element has an intrinsic ratio, 'height' and 'bottom' are set to 'auto' and 'width' is specified.
G
Absolute replaced elements without intrinsic ratios, 'height' and 'bottom' set to 'auto'
  • For an absolutely positioned replaced element the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Absolute replaced elements with percentage based intrinsic height and 'bottom' set to 'auto'
  • An absolutely positioned replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Absolute replaced elements with percentage based intrinsic height that cannot be resolved and 'top' specified
  • An absolutely positioned replaced element with a percentage height that cannot be resolved has no intrinsic height.
Absolute replaced elements relying on intrinsic height dimensions and 'top', 'bottom' are not 'auto'
  • The 'height' is the intrinsic height when an absolutely positioned replaced element with and intrinsic height has a 'height', 'width' computed as 'auto' and 'top', 'bottom' are not 'auto'.
G
Absolute replaced elements with intrinsic ratios, 'height' set to 'auto' and 'top', 'bottom' are not 'auto'
  • The 'height' is the used width divided by the ratio when an absolutely positioned replaced element has an intrinsic ratio, 'height' is set to 'auto', 'width' is specified and 'top', 'bottom' are not 'auto'.
G
Absolute replaced elements without intrinsic ratios, 'height' set to 'auto' and 'top', 'bottom' are not 'auto'
  • For an absolutely positioned replaced element the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Absolute replaced elements with percentage based intrinsic height set to 'auto' and 'top', 'bottom' are not 'auto'
  • An absolutely positioned replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Absolute replaced elements with percentage based intrinsic height that cannot be resolved where 'top' and 'bottom' are not 'auto'
  • An absolutely positioned replaced element with a percentage height that cannot be resolved has no intrinsic height.
Absolute replaced elements with 'margin-bottom' as 'auto' and 'top', 'bottom', 'margin-top' are not 'auto'
  • An absolutely positioned replaced element with only one value as 'auto' solves for that value (margin-bottom).
G
Absolute replaced elements relying on intrinsic height dimensions and 'top', 'bottom', 'margin-top' are not 'auto'
  • The 'height' is the intrinsic height when an absolutely positioned replaced element with and intrinsic height has a 'height', 'width' computed as 'auto' and 'top', 'bottom' are not 'auto'.
G
Absolute replaced elements with intrinsic ratios, 'height' set to 'auto' and 'top', 'bottom', 'margin-top' are not 'auto'
  • The 'height' is the used width divided by the ratio when an absolutely positioned replaced element has an intrinsic ratio, 'height' is set to 'auto', 'width' is specified and 'top', 'bottom' are not 'auto'.
G
Absolute replaced elements without intrinsic ratios, 'height' set to 'auto' and 'top', 'bottom', 'margin-top' are not 'auto'
  • For an absolutely positioned replaced element the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width.
Absolute replaced elements with percentage based intrinsic height set to 'auto' and 'top', 'bottom', 'margin-top' are not 'auto'
  • An absolutely positioned replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Absolute replaced elements with percentage based intrinsic height that cannot be resolved where 'top', 'bottom', 'margin-top' are not 'auto'
  • An absolutely positioned replaced element with a percentage height that cannot be resolved has no intrinsic height.
Absolute replaced elements with over-constrained values
  • An absolutely positioned replaced element with over-constrained values solves for 'bottom'.
G
Absolute replaced elements relying on intrinsic height dimensions and over-constrained values
  • The 'height' is the intrinsic height when an absolutely positioned replaced element with and intrinsic height with over-constrained values solves for 'bottom'.
G
Absolute replaced elements with intrinsic ratios, 'height' set to 'auto' and over-constrained values
  • The 'height' is the used width divided by the ratio when an absolutely positioned replaced element has an intrinsic ratio, 'height' is set to 'auto', with over-constrained values solves for 'bottom'.
G
Absolute replaced elements without intrinsic ratios, 'height' set to 'auto' and over-constrained values
  • For an absolutely positioned replaced element the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width. And with over-constrained values element solves for 'bottom'.
Absolute replaced elements with percentage based intrinsic height set to 'auto' and over-constrained values
  • An absolutely positioned replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified.
Absolute replaced elements with percentage based intrinsic height that cannot be resolved and there are over-constrained values
  • An absolutely positioned replaced element with a percentage height that cannot be resolved has no intrinsic height.
10.6.6 Complicated cases
float G
Floated non-replaced element with 'margin-top', margin-bottom' set to 'auto' and 'height' relying on the descendants
  • If 'height' is 'auto' on an floated non-replaced element then the 'height' depends on the descendants.
Inline-block non-replaced element with 'margin-top', margin-bottom' set to 'auto' and 'height' relying on the descendants
  • If 'height' is 'auto' on an inline-block non-replaced element then the 'height' depends on the descendants.
Inline-block non-replaced elements' margin box is used for the height of the line box
  • Inline-block non-replaced elements use the margin box for sizing the height of the line box.
10.6.7 'Auto' heights for block formatting context roots
Block formatting context auto height with floats and bottom margins
  • The auto height of a block formatting context element is computed by accounting for bottom-margins of floated content which would otherwise be below the bottom edge of that element.
Block formatting context auto height with floated descendants of the normal flow and bottom margins
  • The auto height of a block formatting context element is computed by accounting for bottom-margins of floated content descendents in the normal flow which would otherwise be below the bottom edge of that element.
Block formatting context auto height with floated descendants outside the normal flow and bottom margins
  • The auto height of a block formatting context element does not account for bottom margins of floated content descendents of out of flow blocks.
10.7 Minimum and maximum heights: 'min-height' and 'max-height'
Max-height using pixels with a minimum minus one value, -1px
  • The 'max-height' property sets a minimum minus one length value in pixels.
Max-height using pixels with a minimum value, 0px
  • The 'max-height' property sets a minimum length value in pixels.
Max-height using pixels with a minimum plus one value, 1px
  • The 'max-height' property sets a minimum plus one length value in pixels.
Max-height using pixels with a negative zero value, -0px
  • The 'max-height' property sets a negative zero length value in pixels.
Max-height using pixels with a positive zero value, +0px
  • The 'max-height' property sets a positive zero length value in pixels.
Max-height using pixels with a nominal value, 96px
  • The 'max-height' property sets a nominal length value in pixels.
Max-height using pixels with a positive nominal value, +96px
  • The 'max-height' property sets a positive nominal length value in pixels.
Max-height using points with a minimum minus one value, -1pt
  • The 'max-height' property sets a minimum minus one length value in points.
Max-height using points with a minimum value, 0pt
  • The 'max-height' property sets a minimum length value in points.
Max-height using points with a minimum plus one value, 1pt
  • The 'max-height' property sets a minimum plus one length value in points.
Max-height using points with a negative zero value, -0pt
  • The 'max-height' property sets a negative zero length value in points.
Max-height using points with a positive zero value, +0pt
  • The 'max-height' property sets a positive zero length value in points.
Max-height using points with a nominal value, 72pt
  • The 'max-height' property sets a nominal length value in points.
Max-height using points with a positive nominal value, +72pt
  • The 'max-height' property sets a positive nominal length value in points.
Max-height using picas with a minimum minus one value, -1pc
  • The 'max-height' property sets a minimum minus one length value in picas.
Max-height using picas with a minimum value, 0pc
  • The 'max-height' property sets a minimum length value in picas.
Max-height using picas with a minimum plus one value, 1pc
  • The 'max-height' property sets a minimum plus one length value in picas.
Max-height using picas with a negative zero value, -0pc
  • The 'max-height' property sets a negative zero length value in picas.
Max-height using picas with a positive zero value, +0pc
  • The 'max-height' property sets a positive zero length value in picas.
Max-height using picas with a nominal value, 6pc
  • The 'max-height' property sets a nominal length value in picas.
Max-height using picas with a positive nominal value, +6pc
  • The 'max-height' property sets a positive nominal length value in picas.
Max-height using centimeters with a minimum minus one value, -1cm
  • The 'max-height' property sets a minimum minus one length value in centimeters.
Max-height using centimeters with a minimum value, 0cm
  • The 'max-height' property sets a minimum length value in centimeters.
Max-height using centimeters with a minimum plus one value, 1cm
  • The 'max-height' property sets a minimum plus one length value in centimeters.
Max-height using centimeters with a negative zero value, -0cm
  • The 'max-height' property sets a negative zero length value in centimeters.
Max-height using centimeters with a positive zero value, +0cm
  • The 'max-height' property sets a positive zero length value in centimeters.
Max-height using centimeters with a nominal value, 2.54cm
  • The 'max-height' property sets a nominal length value in centimeters.
Max-height using centimeters with a positive nominal value, +2.54cm
  • The 'max-height' property sets a positive nominal length value in centimeters.
Max-height using millimeters with a minimum minus one value, -1mm
  • The 'max-height' property sets a minimum minus one length value in millimeters.
Max-height using millimeters with a minimum value, 0mm
  • The 'max-height' property sets a minimum length value in millimeters.
Max-height using millimeters with a minimum plus one value, 1mm
  • The 'max-height' property sets a minimum plus one length value in millimeters.
Max-height using millimeters with a negative zero value, -0mm
  • The 'max-height' property sets a negative zero length value in millimeters.
Max-height using millimeters with a positive zero value, +0mm
  • The 'max-height' property sets a positive zero length value in millimeters.
Max-height using millimeters with a nominal value, 25.4mm
  • The 'max-height' property sets a nominal length value in millimeters.
Max-height using millimeters with a positive nominal value, +25.4mm
  • The 'max-height' property sets a positive nominal length value in millimeters.
Max-height using inches with a minimum minus one value, -1in
  • The 'max-height' property sets a minimum minus one length value in inches.
Max-height using inches with a minimum value, 0in
  • The 'max-height' property sets a minimum length value in inches.
Max-height using inches with a minimum plus one value, 1in
  • The 'max-height' property sets a minimum plus one length value in inches.
Max-height using inches with a negative zero value, -0in
  • The 'max-height' property sets a negative zero length value in inches.
Max-height using inches with a positive zero value, +0in
  • The 'max-height' property sets a positive zero length value in inches.
Max-height using inches with a nominal value, 3in
  • The 'max-height' property sets a nominal length value in inches.
Max-height using inches with a positive nominal value, +3in
  • The 'max-height' property sets a positive nominal length value in inches.
Max-height using 'em' units with a minimum minus one value, -1em
  • The 'max-height' property sets a minimum minus one length value in 'em' units.
A
Max-height using 'em' units with a minimum value, 0em
  • The 'max-height' property sets a minimum length value in 'em' units.
A
Max-height using 'em' units with a minimum plus one value, 1em
  • The 'max-height' property sets a minimum plus one length value in 'em' units.
A
Max-height using 'em' units with a negative zero value, -0em
  • The 'max-height' property sets a negative zero length value in 'em' units.
A
Max-height using 'em' units with a positive zero value, +0em
  • The 'max-height' property sets a positive zero length value in 'em' units.
A
Max-height using 'em' units with a nominal value, 6em
  • The 'max-height' property sets a nominal length value in 'em' units.
A
Max-height using 'em' units with a positive nominal value, +6em
  • The 'max-height' property sets a positive nominal length value in 'em' units.
A
Max-height using 'ex' units with a minimum minus one value, -1ex
  • The 'max-height' property sets a minimum minus one length value in 'ex' units.
A
Max-height using 'ex' units with a minimum value, 0ex
  • The 'max-height' property sets a minimum length value in 'ex' units.
A
Max-height using 'ex' units with a minimum plus one value, 1ex
  • The 'max-height' property sets a minimum plus one length value in 'ex' units.
A
Max-height using 'ex' units with a negative zero value, -0ex
  • The 'max-height' property sets a negative zero length value in 'ex' units.
A
Max-height using 'ex' units with a positive zero value, +0ex
  • The 'max-height' property sets a positive zero length value in 'ex' units.
A
Max-height using 'ex' units with a nominal value, 7.5ex
  • The 'max-height' property sets a nominal length value in 'ex' units.
A
Max-height using 'ex' units with a positive nominal value, +7.5ex
  • The 'max-height' property sets a positive nominal length value in 'ex' units.
A
Max-height using percentages with a minimum minus one value, -1%
  • The 'max-height' property sets a minimum minus one length value in percentages.
Max-height using percentages with a minimum value, 0%
  • The 'max-height' property sets a minimum length value in percentages.
Max-height using percentages with a minimum plus one value, 1%
  • The 'max-height' property sets a minimum plus one length value in percentages.
Max-height using percentages with a negative zero value, -0%
  • The 'max-height' property sets a negative zero length value in percentages.
Max-height using percentages with a positive zero value, +0%
  • The 'max-height' property sets a positive zero length value in percentages.
Max-height using percentages with a nominal value, 100%
  • The 'max-height' property sets a nominal length value in percentages.
Max-height using percentages with a positive nominal value, +100%
  • The 'max-height' property sets a positive nominal length value in percentages.
Max-height with a negative zero value and no units, -0
  • The 'max-height' property sets a negative zero length value with no units.
Max-height with a zero value and no units, 0
  • The 'max-height' property sets a zero length value with no units.
Max-height with a positive zero value and no units, +0
  • The 'max-height' property sets a positive zero length value with no units.
Max-height set to a value of 'none'
  • The 'max-height' property applies a value of 'none'.
Max-height set to inherit
  • The 'max-height' property properly inherits the max-height value of the parent.
max-height - oveflow
  • The 'max-height' property can restrain the used value of height when the used value of height is greater than the declared max-height and not when it is less than the declared max-height and not when it does not exceed the declared max-height.
max-height - float and overflow
A
max-height - space for scrollbar
  • Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars.
A
max-height - overflow
  • The max-height property can restrain the used value of height when the used value of height is greater than the declared max-height and not when it is less than the declared max-height and not when it does not exceed the declared max-height.
A
max-height - overflow
  • The 'max-height' property can restrain the used value of height when the used value of height is greater than the declared max-height.
A
max-height - space for scrollbar
  • Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars.
A
max-height - float and overflow
  • The content of the #test-red-overlapped generates an active horizontal scrollbar. The height of such horizontal scrollbar adds itself to the content making it exceed the max-height constraint of 200px. Therefore, such vertical space taken by the horizontal scrollbar must be substracted from the height of the content. An active vertical scrollbar then must be generated to provide access to the equivalent of the height of the horizontal scrollbar.
A
Max-height applied to elements with 'display' set to 'table-column-group'
  • The 'max-height' property does not to elements with 'display' set to 'table-column-group'.
Max-height applied to elements with 'display' set to 'table-column'
  • The 'max-height' property does not to elements with 'display' set to 'table-column'.
Max-height applied to elements with 'display' set to 'inline'
  • The 'max-height' property does not apply to elements with 'display' set to 'inline'.
Max-height applied to elements with 'display' set to 'block'
  • The 'max-height' property applies to elements with 'display' set to 'block'.
Max-height applied to elements with 'display' set to 'list-item'
  • The 'max-height' property applies to elements with 'display' set to 'list-item'.
Max-height applied to elements with 'display' set to 'run-in'
  • The 'max-height' property applies to elements with 'display' set to 'run-in'.
Max-height applied to elements with 'display' set to 'inline-block'
  • The 'max-height' property applies to elements with 'display' set to 'inline-block'.
Max-height applied to elements with 'display' set to 'table'
  • The 'max-height' property applies to elements with 'display' set to 'table'.
Max-height applied to elements with 'display' set to 'inline-table'
  • The 'max-height' property applies to elements with 'display' set to 'inline-table'.
Max-height applied to elements with 'display' set to 'table-caption'
  • The 'max-height' property applies to elements with 'display' set to 'table-caption'.
Max-Height applied to none
  • Max-Height can be applied to none elements.
Max-height percentage is based on containing block
  • A percentage for 'max-height' is calculated with respect to the 'height' of the generated boxes containing block.
Percentage 'max-height' with no 'height' on containing block
  • When the 'height' of the containing block is not specified and the element is not absolutely positioned the percentage is treated as '0' for 'min-height' and 'none' for 'max-height'.
Min-height using pixels with a minimum minus one value, -1px
  • The 'min-height' property sets a minimum minus one length value in pixels.
Min-height using pixels with a minimum value, 0px
  • The 'min-height' property sets a minimum length value in pixels.
Min-height using pixels with a minimum plus one value, 1px
  • The 'min-height' property sets a minimum plus one length value in pixels.
Min-height using pixels with a negative zero value, -0px
  • The 'min-height' property sets a negative zero length value in pixels.
Min-height using pixels with a positive zero value, +0px
  • The 'min-height' property sets a positive zero length value in pixels.
Min-height using pixels with a nominal value, 96px
  • The 'min-height' property sets a nominal length value in pixels.
Min-height using pixels with a positive nominal value, +96px
  • The 'min-height' property sets a positive nominal length value in pixels.
Min-height using points with a minimum minus one value, -1pt
  • The 'min-height' property sets a minimum minus one length value in points.
Min-height using points with a minimum value, 0pt
  • The 'min-height' property sets a minimum length value in points.
Min-height using points with a minimum plus one value, 1pt
  • The 'min-height' property sets a minimum plus one length value in points.
Min-height using points with a negative zero value, -0pt
  • The 'min-height' property sets a negative zero length value in points.
Min-height using points with a positive zero value, +0pt
  • The 'min-height' property sets a positive zero length value in points.
Min-height using points with a nominal value, 72pt
  • The 'min-height' property sets a nominal length value in points.
Min-height using points with a positive nominal value, +72pt
  • The 'min-height' property sets a positive nominal length value in points.
Min-height using picas with a minimum minus one value, -1pc
  • The 'min-height' property sets a minimum minus one length value in picas.
Min-height using picas with a minimum value, 0pc
  • The 'min-height' property sets a minimum length value in picas.
Min-height using picas with a minimum plus one value, 1pc
  • The 'min-height' property sets a minimum plus one length value in picas.
Min-height using picas with a negative zero value, -0pc
  • The 'min-height' property sets a negative zero length value in picas.
Min-height using picas with a positive zero value, +0pc
  • The 'min-height' property sets a positive zero length value in picas.
Min-height using picas with a nominal value, 6pc
  • The 'min-height' property sets a nominal length value in picas.
Min-height using picas with a positive nominal value, +6pc
  • The 'min-height' property sets a positive nominal length value in picas.
Min-height using centimeters with a minimum minus one value, -1cm
  • The 'min-height' property sets a minimum minus one length value in centimeters.
Min-height using centimeters with a minimum value, 0cm
  • The 'min-height' property sets a minimum length value in centimeters.
Min-height using centimeters with a minimum plus one value, 1cm
  • The 'min-height' property sets a minimum plus one length value in centimeters.
Min-height using centimeters with a negative zero value, -0cm
  • The 'min-height' property sets a negative zero length value in centimeters.
Min-height using centimeters with a positive zero value, +0cm
  • The 'min-height' property sets a positive zero length value in centimeters.
Min-height using centimeters with a nominal value, 2.54cm
  • The 'min-height' property sets a nominal length value in centimeters.
Min-height using centimeters with a positive nominal value, +2.54cm
  • The 'min-height' property sets a positive nominal length value in centimeters.
Min-height using millimeters with a minimum minus one value, -1mm
  • The 'min-height' property sets a minimum minus one length value in millimeters.
Min-height using millimeters with a minimum value, 0mm
  • The 'min-height' property sets a minimum length value in millimeters.
Min-height using millimeters with a minimum plus one value, 1mm
  • The 'min-height' property sets a minimum plus one length value in millimeters.
Min-height using millimeters with a negative zero value, -0mm
  • The 'min-height' property sets a negative zero length value in millimeters.
Min-height using millimeters with a positive zero value, +0mm
  • The 'min-height' property sets a positive zero length value in millimeters.
Min-height using millimeters with a nominal value, 25.4mm
  • The 'min-height' property sets a nominal length value in millimeters.
Min-height using millimeters with a positive nominal value, +25.4mm
  • The 'min-height' property sets a positive nominal length value in millimeters.
Min-height using inches with a minimum minus one value, -1in
  • The 'min-height' property sets a minimum minus one length value in inches.
Min-height using inches with a minimum value, 0in
  • The 'min-height' property sets a minimum length value in inches.
Min-height using inches with a minimum plus one value, 1in
  • The 'min-height' property sets a minimum plus one length value in inches.
Min-height using inches with a negative zero value, -0in
  • The 'min-height' property sets a negative zero length value in inches.
Min-height using inches with a positive zero value, +0in
  • The 'min-height' property sets a positive zero length value in inches.
Min-height using inches with a nominal value, 3in
  • The 'min-height' property sets a nominal length value in inches.
Min-height using inches with a positive nominal value, +3in
  • The 'min-height' property sets a positive nominal length value in inches.
Min-height using 'em' units with a minimum minus one value, -1em
  • The 'min-height' property sets a minimum minus one length value in 'em' units.
A
Min-height using 'em' units with a minimum value, 0em
  • The 'min-height' property sets a minimum length value in 'em' units.
A
Min-height using 'em' units with a minimum plus one value, 1em
  • The 'min-height' property sets a minimum plus one length value in 'em' units.
A
Min-height using 'em' units with a negative zero value, -0em
  • The 'min-height' property sets a negative zero length value in 'em' units.
A
Min-height using 'em' units with a positive zero value, +0em
  • The 'min-height' property sets a positive zero length value in 'em' units.
A
Min-height using 'em' units with a nominal value, 6em
  • The 'min-height' property sets a nominal length value in 'em' units.
A
Min-height using 'em' units with a positive nominal value, +6em
  • The 'min-height' property sets a positive nominal length value in 'em' units.
A
Min-height using 'ex' units with a minimum minus one value, -1ex
  • The 'min-height' property sets a minimum minus one length value in 'ex' units.
A
Min-height using 'ex' units with a minimum value, 0ex
  • The 'min-height' property sets a minimum length value in 'ex' units.
A
Min-height using 'ex' units with a minimum plus one value, 1ex
  • The 'min-height' property sets a minimum plus one length value in 'ex' units.
A
Min-height using 'ex' units with a negative zero value, -0ex
  • The 'min-height' property sets a negative zero length value in 'ex' units.
A
Min-height using 'ex' units with a positive zero value, +0ex
  • The 'min-height' property sets a positive zero length value in 'ex' units.
A
Min-height using 'ex' units with a nominal value, 7.5ex
  • The 'min-height' property sets a nominal length value in 'ex' units.
A
Min-height using 'ex' units with a positive nominal value, +7.5ex
  • The 'min-height' property sets a positive nominal length value in 'ex' units.
A
Min-height using percentages with a minimum minus one value, -1%
  • The 'min-height' property sets a minimum minus one length value in percentages.
Min-height using percentages with a minimum value, 0%
  • The 'min-height' property sets a minimum length value in percentages.
Min-height using percentages with a minimum plus one value, 1%
  • The 'min-height' property sets a minimum plus one length value in percentages.
Min-height using percentages with a negative zero value, -0%
  • The 'min-height' property sets a negative zero length value in percentages.
Min-height using percentages with a positive zero value, +0%
  • The 'min-height' property sets a positive zero length value in percentages.
Min-height using percentages with a nominal value, 100%
  • The 'min-height' property sets a nominal length value in percentages.
Min-height using percentages with a positive nominal value, +100%
  • The 'min-height' property sets a positive nominal length value in percentages.
Min-height with a negative zero value and no units, -0
  • The 'min-height' property sets a negative zero length value with no units.
Min-height with a zero value and no units, 0
  • The 'min-height' property sets a zero length value with no units.
Min-height with a positive zero value and no units, +0
  • The 'min-height' property sets a positive zero length value with no units.
Min-height set to 'inherit'
  • The 'min-height' property properly inherits the min-height value of the parent.
min-height - space for scrollbar
  • Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars.
A
min-height - space for scrollbar
  • Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars.
A
min-height - float and overflow
  • 'min-height' specifies a fixed minimum used height. If the element requires an horizontal scrollbar, then the horizontal scrollbar height should be subtracted from the height of its containing block so that the resulting used height continues to honor the declared min-height.
A
Min-height applied to elements with 'display' set to 'table-row-group'
  • The 'min-height' property applies to elements with 'display' set to 'table-row-group'.
Min-height applied to elements with 'display' set to 'table-header-group'
  • The 'min-height' property applies to elements with 'display' set to 'table-header-group'.
Min-height applied to elements with 'display' set to 'table-footer-group'
  • The 'min-height' property applies to elements with 'display' set to 'table-footer-group'.
Min-height applied to elements with 'display' set to 'table-row'
  • The 'min-height' property applies to elements with 'display' set to 'table-row'.
Min-height applied to elements with 'display' set to 'table-column-group'
  • The 'min-height' property does not to elements with 'display' set to 'table-column-group'.
Min-height applied to elements with 'display' set to 'table-column'
  • The 'min-height' property does not to elements with 'display' set to 'table-column'.
Min-height applied to elements with 'display' set to 'table-cell'
  • The 'min-height' property applies to elements with 'display' set to 'table-cell'.
Min-height applied to elements with 'display' set to 'inline'
  • The 'min-height' property does not apply to elements with 'display' set to 'inline'.
Min-height applied to elements with 'display' set to 'block'
  • The 'min-height' property applies to elements with 'display' set to 'block'.
Min-height applied to elements with 'display' set to 'list-item'
  • The 'min-height' property applies to elements with 'display' set to 'list-item'.
Min-height applied to elements with 'display' set to 'run-in'
  • The 'min-height' property applies to elements with 'display' set to 'run-in'.
Min-height applied to elements with 'display' set to 'inline-block'
  • The 'min-height' property applies to elements with 'display' set to 'inline-block'.
Min-height applied to elements with 'display' set to 'table'
  • The 'min-height' property applies to elements with 'display' set to 'table'.
Min-height applied to elements with 'display' set to 'inline-table'
  • The 'min-height' property applies to elements with 'display' set to 'inline-table'.
Min-height applied to elements with 'display' set to 'table-caption'
  • The 'min-height' property applies to elements with 'display' set to 'table-caption'.
Min-height percentage is based on containing block
  • A percentage for 'min-height' is calculated with respect to the 'height' of the generated boxes containing block.
Percentage 'min-height' with no 'height' on containing block
  • When the 'height' of the containing block is not specified and the element is not absolutely positioned the percentage is treated as '0' for 'min-height' and 'none' for 'max-height'.
10.8 Line height calculations: the 'line-height' and 'vertical-align' properties
Replaced Elements AG
The Height of Lines AG
The Height of Lines AG
The Height of Lines AG
The Height of Lines AG
Line height calculations: the 'line-height' and 'vertical-align' properties - Empty inline elements influence
  • The line-height of an empty inline element influences the height of a line containing it with some other content
10.8.1 Leading and half-leading
Inline Elements A
font
font
font
font
font
font
font
font
font
font
vertical-align AG
vertical-align AG
vertical-align AGU
vertical-align AGU
vertical-align AGU
line-height A
line-height A
line-height AG
line-height AG
line-height AG
line-height AG
Empty line box influence
  • Empty inline elements still influence calculation just like elements with content.
A
Leading and half leading line heights
  • Line-height can be different from the content area so space is above and below.
A
Height for inline elements when 'line-height' is smaller than 'height'
  • The 'line-height' property sets the initial height but that height is increased if the content height is larger.
A
Height for inline replaced elements and 'line-height'
  • The 'line-height' property doe not set the height for inline replaced elements. The height of the replaced element sets the line-height'.
G
Line-height using pixels with a minimum minus one value, -1px
  • The 'line-height' property sets a minimum minus one length value in pixels.
A
Line-height using pixels with a minimum value, 0px
  • The 'line-height' property sets a minimum length value in pixels.
A
Line-height using pixels with a minimum plus one value, 1px
  • The 'line-height' property sets a minimum plus one length value in pixels.
A
Line-height using pixels with a negative zero value, -0px
  • The 'line-height' property sets a negative zero length value in pixels.
A
Line-height using pixels with a positive zero value, +0px
  • The 'line-height' property sets a positive zero length value in pixels.
A
Line-height using pixels with a nominal value, 96px
  • The 'line-height' property sets a nominal length value in pixels.
A
Line-height using pixels with a positive nominal value, +96px
  • The 'line-height' property sets a positive nominal length value in pixels.
A
Line-height using points with a minimum minus one value, -1pt
  • The 'line-height' property sets a minimum minus one length value in points.
A
Line-height using points with a minimum value, 0pt
  • The 'line-height' property sets a minimum length value in points.
A
Line-height using points with a minimum plus one value, 1pt
  • The 'line-height' property sets a minimum plus one length value in points.
96A
Line-height using points with a negative zero value, -0pt
  • The 'line-height' property sets a negative zero length value in points.
A
Line-height using points with a positive zero value, +0pt
  • The 'line-height' property sets a positive zero length value in points.
A
Line-height using points with a nominal value, 72pt
  • The 'line-height' property sets a nominal length value in points.
A
Line-height using points with a positive nominal value, +72pt
  • The 'line-height' property sets a positive nominal length value in points.
A
Line-height using picas with a minimum minus one value, -1pc
  • The 'line-height' property sets a minimum minus one length value in picas.
A
Line-height using picas with a minimum value, 0pc
  • The 'line-height' property sets a minimum length value in picas.
A
Line-height using picas with a minimum plus one value, 1pc
  • The 'line-height' property sets a minimum plus one length value in picas.
A
Line-height using picas with a negative zero value, -0pc
  • The 'line-height' property sets a negative zero length value in picas.
A
Line-height using picas with a positive zero value, +0pc
  • The 'line-height' property sets a positive zero length value in picas.
A
Line-height using picas with a nominal value, 6pc
  • The 'line-height' property sets a nominal length value in picas.
A
Line-height using picas with a positive nominal value, +6pc
  • The 'line-height' property sets a positive nominal length value in picas.
A
Line-height using centimeters with a minimum minus one value, -1cm
  • The 'line-height' property sets a minimum minus one length value in centimeters.
A
Line-height using centimeters with a minimum value, 0cm
  • The 'line-height' property sets a minimum length value in centimeters.
A
Line-height using centimeters with a minimum plus one value, 1cm
  • The 'line-height' property sets a minimum plus one length value in centimeters.
A
Line-height using centimeters with a negative zero value, -0cm
  • The 'line-height' property sets a negative zero length value in centimeters.
A
Line-height using centimeters with a positive zero value, +0cm
  • The 'line-height' property sets a positive zero length value in centimeters.
A
Line-height using centimeters with a nominal value, 2.54cm
  • The 'line-height' property sets a nominal length value in centimeters.
A
Line-height using centimeters with a positive nominal value, +2.54cm
  • The 'line-height' property sets a positive nominal length value in centimeters.
A
Line-height using millimeters with a minimum minus one value, -1mm
  • The 'line-height' property sets a minimum minus one length value in millimeters.
A
Line-height using millimeters with a minimum value, 0mm
  • The 'line-height' property sets a minimum length value in millimeters.
A
Line-height using millimeters with a minimum plus one value, 1mm
  • The 'line-height' property sets a minimum plus one length value in millimeters.
A
Line-height using millimeters with a negative zero value, -0mm
  • The 'line-height' property sets a negative zero length value in millimeters.
A
Line-height using millimeters with a positive zero value, +0mm
  • The 'line-height' property sets a positive zero length value in millimeters.
A
Line-height using millimeters with a nominal value, 25.4mm
  • The 'line-height' property sets a nominal length value in millimeters.
A
Line-height using millimeters with a positive nominal value, +25.4mm
  • The 'line-height' property sets a positive nominal length value in millimeters.
A
Line-height using inches with a minimum minus one value, -1in
  • The 'line-height' property sets a minimum minus one length value in inches.
A
Line-height using inches with a minimum value, 0in
  • The 'line-height' property sets a minimum length value in inches.
A
Line-height using inches with a minimum plus one value, 1in
  • The 'line-height' property sets a minimum plus one length value in inches.
A
Line-height using inches with a negative zero value, -0in
  • The 'line-height' property sets a negative zero length value in inches.
A
Line-height using inches with a positive zero value, +0in
  • The 'line-height' property sets a positive zero length value in inches.
A
Line-height using inches with a nominal value, 3in
  • The 'line-height' property sets a nominal length value in inches.
A
Line-height using inches with a positive nominal value, +3in
  • The 'line-height' property sets a positive nominal length value in inches.
A
Line-height using 'em' units with a minimum minus one value, -1em
  • The 'line-height' property sets a minimum minus one length value in 'em' units.
A
Line-height using 'em' units with a minimum value, 0em
  • The 'line-height' property sets a minimum length value in 'em' units.
A
Line-height using 'em' units with a minimum plus one value, 1em
  • The 'line-height' property sets a minimum plus one length value in 'em' units.
A
Line-height using 'em' units with a negative zero value, -0em
  • The 'line-height' property sets a negative zero length value in 'em' units.
A
Line-height using 'em' units with a positive zero value, +0em
  • The 'line-height' property sets a positive zero length value in 'em' units.
A
Line-height using 'em' units with a nominal value, 6em
  • The 'line-height' property sets a nominal length value in 'em' units.
A
Line-height using 'em' units with a positive nominal value, +6em
  • The 'line-height' property sets a positive nominal length value in 'em' units.
A
Line-height using 'ex' units with a minimum minus one value, -1ex
  • The 'line-height' property sets a minimum minus one length value in 'ex' units.
A
Line-height using 'ex' units with a minimum value, 0ex
  • The 'line-height' property sets a minimum length value in 'ex' units.
A
Line-height using 'ex' units with a minimum plus one value, 1ex
  • The 'line-height' property sets a minimum plus one length value in 'ex' units.
A
Line-height using 'ex' units with a negative zero value, -0ex
  • The 'line-height' property sets a negative zero length value in 'ex' units.
A
Line-height using 'ex' units with a positive zero value, +0ex
  • The 'line-height' property sets a positive zero length value in 'ex' units.
A
Line-height using 'ex' units with a nominal value, 6ex
  • The 'line-height' property sets a nominal length value in 'ex' units.
A
Line-height using 'ex' units with a positive nominal value, +6ex
  • The 'line-height' property sets a positive nominal length value in 'ex' units.
A
Line-height using percentages with a minimum minus one value, -1%
  • The 'line-height' property sets a minimum minus one length value in percentages.
A
Line-height using percentages with a minimum value, 0%
  • The 'line-height' property sets a minimum length value in percentages.
A
Line-height using percentages with a minimum plus one value, 1%
  • The 'line-height' property sets a minimum plus one length value in percentages.
96A
Line-height using percentages with a negative zero value, -0%
  • The 'line-height' property sets a negative zero length value in percentages.
A
Line-height using percentages with a positive zero value, +0%
  • The 'line-height' property sets a positive zero length value in percentages.
A
Line-height using percentages with a nominal value, 100%
  • The 'line-height' property sets a nominal length value in percentages.
A
Line-height using percentages with a positive nominal value, +100%
  • The 'line-height' property sets a positive nominal length value in percentages.
A
Line-height with a minimum minus one value, -1
  • The 'line-height' property sets a minimum minus one number value.
A
Line-height with a minimum value, 0
  • The 'line-height' property sets a minimum number value.
A
Line-height using pixels with a minimum plus one value, 1
  • The 'line-height' property sets a minimum plus one number value.
A
Line-height using pixels with a negative zero value, -0
  • The 'line-height' property sets a negative zero number value.
A
Line-height with a positive zero value, +0
  • The 'line-height' property sets a positive zero number value.
A
Line-height with a nominal value, 5
  • The 'line-height' property sets a nominal number value.
A
Line-height with a positive nominal value, +5
  • The 'line-height' property sets a positive nominal number value.
A
Line-height with keyword value of 'normal'
  • The 'line-height' property set to 'normal' uses the default line-height.
A
Line-height with keyword value of 'inherit'
  • The 'line-height' property set to 'inherit' uses the default line-height.
A
Line-height applied to elements with 'display' set to 'table-row-group'
  • The 'line-height' property applies to elements with 'display' set to 'table-row-group'.
Line-height applied to elements with 'display' set to 'table-header-group'
  • The 'line-height' property applies to elements with 'display' set to 'table-header-group'.
Line-height applied to elements with 'display' set to 'table-footer-group'
  • The 'line-height' property applies to elements with 'display' set to 'table-footer-group'.
Line-height applied to elements with 'display' set to 'table-row'
  • The 'line-height' property applies to elements with 'display' set to 'table-row'.
Line-height applied to elements with 'display' set to 'table-column-group'
  • The 'line-height' property applies to elements with 'display' set to 'table-column-group'.
Line-height applied to elements with 'display' set to 'table-column'
  • The 'line-height' property applies to elements with 'display' set to 'table-column'.
Line-height applied to elements with 'display' set to 'table-cell'
  • The 'line-height' property applies to elements with 'display' set to 'table-cell'.
Line-height applied to elements with 'display' set to 'inline'
  • The 'line-height' property applies to elements with 'display' set to 'inline'.
Line-height applied to elements with 'display' set to 'block'
  • The 'line-height' property applies to elements with 'display' set to 'block'.
Line-height applied to elements with 'display' set to 'list-item'
  • The 'line-height' property applies to elements with 'display' set to 'list-item'.
Line-height applied to elements with 'display' set to 'run-in'
  • The 'line-height' property applies to elements with 'display' set to 'run-in'.
Line-height applied to elements with 'display' set to 'inline-block'
  • The 'line-height' property applies to elements with 'display' set to 'inline-block'.
Line-height applied to elements with 'display' set to 'table'
  • The 'line-height' property applies to elements with 'display' set to 'table'.
Line-height applied to elements with 'display' set to 'inline-table'
  • The 'line-height' property applies to elements with 'display' set to 'inline-table'.
Line-height applied to elements with 'display' set to 'table-caption'
  • The 'line-height' property applies to elements with 'display' set to 'table-caption'.
Line-height applied to elements with 'display' set to 'none'
  • The 'line-height' property applies to elements with 'display' set to 'none'.
Glyphs overflow line box
  • Glyphs bleed out of the box when 'line-height' is less than the content height and the height of the box is not increased.
Glyphs overflow when line height of container is less than content height
  • That glyphs bleed out of the box when 'line-height' can overlap adjoining line boxes.
A
Leading and half leading line heights leads to space above and below
  • Line-height can be different from the content area so there is space above and below.
Line-height with multiple font sizes
  • The 'line-height' value may use the largest font size when there is more than one font size.
M
Line-height recommended 'normal' value
  • It is recommended that the 'normal' value for 'line-height' is set to 1.0 or 1.2 'em' units.
AR
Vertical-align using pixels with a negative zero value, -0px
  • The 'vertical-align' property sets a negative zero length value in pixels.
A
Vertical-align using pixels with a zero value, 0px
  • The 'vertical-align' property sets a zero length value in pixels.
A
Vertical-align using pixels with a positive zero value, +0px
  • The 'vertical-align' property sets a positive zero length value in pixels.
A
Vertical-align using pixels with a nominal value, 96px
  • The 'vertical-align' property sets a nominal length value in pixels.
A
Vertical-align using pixels with a positive nominal value, +96px
  • The 'vertical-align' property sets a positive nominal length value in pixels.
A
Vertical-align using points with a negative zero value, -0pt
  • The 'vertical-align' property sets a negative zero length value in points.
A
Vertical-align using points with a zero value, 0pt
  • The 'vertical-align' property sets a zero length value in points.
A
Vertical-align using points with a positive zero value, +0pt
  • The 'vertical-align' property sets a negative zero length value in points.
A
Vertical-align using points with a nominal value, 72pt
  • The 'vertical-align' property sets a nominal length value in points.
A
Vertical-align using points with a positive nominal value, +72pt
  • The 'vertical-align' property sets a nominal length value in points.
A
Vertical-align using picas with a negative zero value, -0pc
  • The 'vertical-align' property sets a negative zero length value in picas.
A
Vertical-align using picas with a zero value, 0pc
  • The 'vertical-align' property sets a zero length value in picas.
A
Vertical-align using picas with a positive zero value, +0pc
  • The 'vertical-align' property sets a positive zero length value in picas.
A
Vertical-align using picas with a nominal value, 6pc
  • The 'vertical-align' property sets a nominal length value in picas.
A
Vertical-align using picas with a positive nominal value, +6pc
  • The 'vertical-align' property sets a positive nominal length value in picas.
A
Vertical-align using centimeters with a negative zero value, -0cm
  • The 'vertical-align' property sets a negative zero length value in centimeters.
A
Vertical-align using centimeters with a zero value, 0cm
  • The 'vertical-align' property sets a zero length value in centimeters.
A
Vertical-align using centimeters with a positive zero value, +0cm
  • The 'vertical-align' property sets a positive zero length value in centimeters.
A
Vertical-align using centimeters with a nominal value, 2.54cm
  • The 'vertical-align' property sets a nominal length value in centimeters.
A
Vertical-align using centimeters with a positive nominal value, +2.54cm
  • The 'vertical-align' property sets a positive nominal length value in centimeters.
A
Vertical-align using millimeters with a negative zero value, -0mm
  • The 'vertical-align' property sets a negative zero length value in millimeters.
A
Vertical-align using millimeters with a zero value, 0mm
  • The 'vertical-align' property sets a zero length value in millimeters.
A
Vertical-align using millimeters with a positive zero value, +0mm
  • The 'vertical-align' property sets a positive zero length value in millimeters.
A
Vertical-align using millimeters with a nominal value, 25.4mm
  • The 'vertical-align' property sets a nominal length value in millimeters.
A
Vertical-align using millimeters with a positive nominal value, +25.4mm
  • The 'vertical-align' property sets a positive nominal length value in millimeters.
A
Vertical-align using inches with a negative zero value, -0in
  • The 'vertical-align' property sets a negative zero length value in inches.
A
Vertical-align using inches with a zero value, 0in
  • The 'vertical-align' property sets a zero length value in inches.
A
Vertical-align using inches with a positive zero value, +0in
  • The 'vertical-align' property sets a positive zero length value in inches.
A
Vertical-align using inches with a nominal value, 1in
  • The 'vertical-align' property sets a nominal length value in inches.
A
Vertical-align using inches with a positive nominal value, +1in
  • The 'vertical-align' property sets a positive nominal length value in inches.
A
Vertical-align using 'em' units with a negative zero value, -0em
  • The 'vertical-align' property sets a negative zero length value in 'em' units.
A
Vertical-align using 'em' units with a zero value, 0em
  • The 'vertical-align' property sets a zero length value in 'em' units.
A
Vertical-align using 'em' units with a positive zero value, +0em
  • The 'vertical-align' property sets a positive zero length value in 'em' units.
A
Vertical-align using 'em' units with a nominal value, 6em
  • The 'vertical-align' property sets a nominal length value in 'em' units.
A
Vertical-align using 'em' units with a positive nominal value, +6em
  • The 'vertical-align' property sets a positive nominal length value in 'em' units.
A
Vertical-align using 'ex' units with a negative zero value, -0ex
  • The 'vertical-align' property sets a negative zero length value in 'ex' units.
A
Vertical-align using 'ex' units with a zero value, 0ex
  • The 'vertical-align' property sets a zero length value in 'ex' units.
A
Vertical-align using 'ex' units with a positive zero value, +0ex
  • The 'vertical-align' property sets a positive zero length value in 'ex' units.
A
Vertical-align using 'ex' units with a nominal value, 7.5ex
  • The 'vertical-align' property sets a nominal length value in 'ex' units.
A
Vertical-align using 'ex' units with a positive nominal value, +7.5ex
  • The 'vertical-align' property sets a positive nominal length value in 'ex' units.
A
Vertical-align using percentages with a negative zero value, -0%
  • The 'vertical-align' property sets a negative zero length value in percentages.
A
Vertical-align using percentages with a zero value, 0%
  • The 'vertical-align' property sets a zero length value in percentages.
A
Vertical-align using percentages with a positive zero value, +0%
  • The 'vertical-align' property sets a positive zero length value in percentages.
A
Vertical-align using percentages with a nominal value, 100%
  • The 'vertical-align' property sets a nominal length value in percentages.
A
Vertical-align using percentages with a positive nominal value, +100%
  • The 'vertical-align' property sets a positive nominal length value in percentages.
A
Vertical-align with a negative zero value and no units, -0
  • The 'vertical-align' property sets a negative zero length value with no units.
A
Vertical-align with a zero value and no units, 0
  • The 'vertical-align' property sets a zero length value with no units.
A
Vertical-align with a positive zero value and no units, +0
  • The 'vertical-align' property sets a positive zero length value with no units.
A
Vertical-align with a keyword, 'baseline'
  • The 'vertical-align' property sets the keyword 'baseline'.
A
Vertical-align with a keyword, 'bottom'
  • The 'vertical-align' property sets the keyword 'bottom'.
A
Vertical-align with a keyword, 'middle'
  • The 'vertical-align' property sets the keyword 'middle'.
A
Vertical-align with a keyword, 'sub'
  • The 'vertical-align' property sets the keyword 'sub'.
A
Vertical-align with a keyword, 'super'
  • The 'vertical-align' property sets the keyword 'super'.
A
Vertical-align with a keyword, 'text-bottom'
  • The 'vertical-align' property sets the keyword 'text-bottom'.
A
Vertical-align with a keyword, 'text-top'
  • The 'vertical-align' property sets the keyword 'text-top'.
A
Vertical-align with a keyword, 'top'
  • The 'vertical-align' property sets the keyword 'top'.
A
Vertical-align with a keyword, 'inherit'
  • The 'vertical-align' property sets the keyword 'inherit' and inherits the computed value from the parent element.
A
Vertical-align applied to elements with 'display' set to 'table-row-group'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-row-group'.
A
Vertical-align applied to elements with 'display' set to 'table-header-group'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-header-group'.
A
Vertical-align applied to elements with 'display' set to 'table-footer-group'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-footer-group'.
A
Vertical-align applied to elements with 'display' set to 'table-row'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-row'.
A
Vertical-align applied to elements with 'display' set to 'table-column-group'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-column-group'.
A
Vertical-align applied to elements with 'display' set to 'table-column'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-column'.
A
Vertical-align applied to elements with 'display' set to 'table-cell'
  • The 'vertical-align' property applies to elements with 'display' set to 'table-cell'.
A
Vertical-align applied to elements with 'display' set to 'inline'
  • The 'vertical-align' property applies to elements with 'display' set to 'inline'.
A
Vertical-align applied to elements with 'display' set to 'block'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'block'.
A
Vertical-align applied to elements with 'display' set to 'list-item'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'list-item'.
A
Vertical-align applied to elements with 'display' set to 'run-in'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'run-in'.
A
Vertical-align applied to elements with 'display' set to 'inline-block'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'inline-block'.
A
Vertical-align applied to elements with 'display' set to 'table'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table'.
A
Vertical-align applied to elements with 'display' set to 'inline-table'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'inline-table'.
A
Vertical-align applied to elements with 'display' set to 'table-caption'
  • The 'vertical-align' property does not apply to elements with 'display' set to 'table-caption'.
A
Vertical-align set to '0%' is equal to 'baseline'
  • The 'vertical-align' property set to '0%' means the same as the 'baseline'.
A
Vertical-align set to '0' is equal to 'baseline'
  • The 'vertical-align' property set to '0' means the same as the 'baseline'.
A
Vertical-align applied to 'inline-block' and baseline alignment
  • The 'vertical-align' property aligns the last line box of 'inline-block' elements with the baseline.
Vertical-align applied to empty 'inline-block' and baseline alignment
  • The 'vertical-align' property aligns an empty 'inline-block' elements' bottom margin edge with the baseline.
A
Vertical-align applied to an 'inline-block' with 'overflow' not set to 'visible' and baseline alignment
  • The 'vertical-align' property aligns an 'inline-block' elements' bottom margin edge with the baseline when 'overflow' is not set to 'visible'.
A
Baseline alignment with an inline element parent
  • The baseline of an inline element is aligned with the baseline of its child inline-block when 'vertical-align: baseline' is specified on the child.
Baseline alignment with a block element parent
  • The baseline of a block element is aligned with the baseline of its child inline element when 'vertical-align: baseline' is specified on the child.
Baseline alignment with a table-cell element parent
  • The baseline of a table cell element is aligned with the baseline of its child inline element when 'vertical-align: baseline' is specified on the child.
Baseline alignment with a table caption element parent
  • The baseline of a table caption element is aligned with the baseline of its child inline element when 'vertical-align: baseline' is specified on the child.
Baseline alignment with an inline-block element parent
  • The baseline of an inline-block element is aligned with the baseline of its child inline element when 'vertical-align: baseline' is specified on the child.
Vertical-align set to 'sub' does not adjust font-size
  • The 'vertical-align' property value 'sub' has no effect on the font-size of an element's text.
Vertical-align set to 'super' does not adjust font-size
  • The 'vertical-align' property value 'super' has no effect on the font-size of an element's text.