Section 9.2.4 of the CSS2 specification states:
integrated unit
This value causes the element to generate an inline block container. The inner part of the embedded block is formatted as a block block, and the element itself is formatted as an atomic built-in block.
in-line
This value causes the element to generate one or more inline fields.
Further, in the CSS2 specification ( section 9.4.2 ), we are informed that inline elements only consider horizontal fields ( proof ):
In the context of formatting formatting, fields are laid out horizontally, one after another, starting from the top of the containing block. Horizontal fields, borders, and padding are respected between these fields.
The difference between inline and inline-block is that inline elements are treated as inline, while inline-block elements are effectively treated as blocks (which are visually embedded in each other).
The block level elements apply to both horizontal and vertical fields, while the linear level elements take into account only horizontal fields.
James donnelly
source share