![]() In CSS 2.1, if the inlineĪcross multiple lines, the containing block is undefined. In the case that the ancestor is an inline element, the containingīlock is the bounding box around the padding boxes of the first and.If the element has 'position: absolute', the containing block isĮstablished by the nearest ancestor with a 'position' of 'absolute', 'relative'.In the case of continuous media or the page area in the case of paged media. If the element has 'position: fixed', the containing block is.The containing block is formed by the content edge of the nearest For other elements, if the element's position is 'relative' or 'static',.The 'direction' property of the initialĬontaining block is the same as for the root element. Media, it has the dimensions of the viewport and is anchored at theįor paged media. The containing block of an elementĮlement lives is a rectangle called the initial containing block. The position and size of an element's box(es) are sometimesĬalculated relative to a certain rectangle, called the containingīlock of the element. The CSS Working Group is also developing CSS level 2 revision 2 (CSS 2.2). Please, see "Cascading Style Sheets (CSS) - The Official Definition" in the latest CSS Snapshot for a list of specifications and the sections they replace. Note: Several sections of this specification have been updated by other specifications. 10.8 Line height calculations: the 'line-height' and 'vertical-align' properties.10.7 Minimum and maximum heights: 'min-height' and 'max-height'.10.6.7 'Auto' heights for block formatting context roots.10.6.5 Absolutely positioned, replaced elements.10.6.4 Absolutely positioned, non-replaced elements.10.6.3 Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'.10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements.10.5 Content height: the 'height' property.10.4 Minimum and maximum widths: 'min-width' and 'max-width'.10.3.10 'Inline-block', replaced elements in normal flow.10.3.9 'Inline-block', non-replaced elements in normal flow.10.3.8 Absolutely positioned, replaced elements. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |