inline-level elements

Inline-level elements are those elements of the source document that do not form new blocks of content; the content is distributed in lines (e.g., emphasized pieces of text within a paragraph, inline images, etc.). Several values of the 'display' property make an element inline: 'inline', 'inline-table', 'inline-block' and 'run-in' (part of the time; see run-in boxes). Inline-level elements generate inline boxes.

width and height properties do not apply to non-replaced inline-level elements. The content width of a non-replaced inline element's boxes is that of the rendered content within them (before any relative offset of children).

The computed value of positioned or floated inline-level elements is block to which width and height apply.

Style the yellow box with zoom:1 and see what happens in IE 6 and 7. Note that in Strict mode, 'width' and 'height' do not trigger hasLayout when applied to inline elements.

Try These

Watch This

aqua yellow pink

Check This

<span id="aqua">aqua</span> <span id="yellow">yellow</span> <span id="pink">pink</span>

Edit This

Use shift + enter to create new lines (even in Safari and Chrome).