What's the difference between `inline` and `inline-block`?
Let's also compare with
display: block for completeness sake.
|Size||Fills up the width of its parent container.||Depends on content.||Depends on content.|
|Positioning||Start on a new line and tolerates no HTML elements next to it (except when you add ||Flows along with other content and allows other elements beside it.||Flows along with other content and allows other elements beside it.|
|Can specify ||Yes||Yes||No. Will ignore if being set.|
|Can be aligned with ||No||Yes||Yes|
|Margins and paddings||All sides respected.||All sides respected.||Only horizontal sides respected. Vertical sides, if specified, do not affect layout. Vertical space it takes up depends on |
|Float||-||-||Becomes like a |