Joined October 2012

Lee Theobald

Cambridge, UK

Posted to Float blocks without floats over 1 year ago

Another thing to watch out for is the baseline it uses. You'll often use inline-block with say an image & then wonder why the next box is shunted down as if it had a top margin.

From the CSS2 spec:
The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge.

40 Karma
0 Total ProTip Views
Interests & Skills