If the containing block's width depends on this element's width, then With respect to the width of the generated box's Values have the following meanings: Specifies the width of the content area using a length unit. Is given by the their containing block, but may be Recall that inline boxes flow into line boxes. Of a non-replaced inline element's boxes is that of the renderedĬontent within them ( before any relative offset ofĬhildren). This property does not apply to non-replaced inline elements. This property specifies the content width of boxes. Media: visual Computed value: the percentage or 'auto' as specified or the absolute length
Percentages: refer to width of containing block 'width' Value: | | auto | inherit Initial: autoĪpplies to: all elements but non-replaced inline elements, table rows, and row groups The nearest positioned ancestor box (i.e., that generated The table of containing blocks becomes: For box generated byīy positioning "em1", its containing block becomes With no positioning, the containing blocks (C.B.) in theĪre established as follows: For box generated by Width on each page and that there may be device-specific limits.