CSS - Anonymous Inline Box

> (World Wide) Web - (W3|WWW) > CSS - Cascading Style Sheets - Markup Language (HTML|XML) Skin > CSS - Block Layout > CSS - Inline Block

1 - About

Any text that is directly contained inside a block container element (not inside an inline element) must be treated as an anonymous inline element.

Anonymous inline boxes do not have an associated inline-level element.

3 - Example

In a document with HTML markup like this:

<p>Some <em>emphasized</em> text</p>
  • the p generates a block box
  • The box for “emphasized” is an inline box generated by an inline element (<em>),
  • The other boxes (“Some” and “text”) are inline boxes
Advertising

4 - Property

4.1 - Inheritance

Such anonymous inline boxes inherit inheritable properties from their block parent box. Non-inherited properties have their initial value.

4.2 - Content

White space content that would subsequently be collapsed away according to the white-space property does not generate any anonymous inline boxes.

5 - Articles Related

6 - Documentation / Reference

web/css/block/inline/anonymous_inline.txt · Last modified: 2019/02/09 11:40 by gerardnico