I worked at a template and i tried to use display: inline-block;
to arange the divs on page and i observed a behaviour that i couldn't explain. The div's with display: inline-block;
containing some element like : span
, div
or a
are displayed below than without something inside.
I looked with Firebug but there is not a margin or padding arround that could explain the spacing.
This behaviour is fix only if i display the span
, div
or a
as :
table-cell
// Chrome Firefox IE9table-row
// Chrome Firefox IE9flex
// Only Firefoxtable
// Chrome Firefox IE9
Can someone provide more details or some advice aboud this behaviour.