inline-level box
A box that flows inside a line of text, like a word, instead of starting on its own line as a block-level box does.
In more detail
Spans, links and images are inline by default, while div, p and section are block-level. Inline boxes ignore width and height and only push lines apart horizontally, which is why the display property is used to change the kind of box.
Related terms
- display — The CSS property that sets how an element takes part in layout, such as block, inline, flex, grid or none.
- normal flow — The default way boxes are laid out when no flex or grid is used: blocks stack top to bottom and inline content flows left to right in lines.
- logical properties — CSS sizes and directions described by writing direction, inline along a line of text and block across lines, instead of left, right, top and bottom.
Taught in
- Modern Box Model, Box Sizing, Display Types And Flow Layout — Frontend Architecture & Web Platform
- Container Queries: Component-Driven Responsive Design — Frontend Architecture & Web Platform