Inline vs Inline-Block Display in CSS - CodeSource.io

Inline-block
Allows setting a width and height on the element.
The top and bottom margins/paddings are respected.
Does not add a line-break after the element, so the element can sit next to other elements.
It is used to display an element as an inline-level block container.
Inline
It is used to displays an element as an inline element.
An inline element does not start on a new line and only takes up as much width as necessary.

#css #snippets #inline #inline-block #programming

Inline vs Inline-Block Display in CSS - CodeSource.io
1.75 GEEK