What exactly is the difference between the inline
and inline-block
values of CSS display
?
Imagine a display: inline display: inline-block display: block Code: http://jsfiddle.net/Mta2b/ Elements with Difference of supported styles as summary: element inside a
element a height of 100px and a red border for example, it will look like this with
display:inline-block
are like display:inline
elements, but they can have a width and a height. That means that you can use an inline-block element as a block while flowing it within text or other elements.
margin-left
, margin-right
, padding-left
, padding-right
margin
, padding
, height
, width