CSS display property with the inline value
Inline-level elements are modest "guests": they take only as much space as they need and don't force a line break. Inline elements flow horizontally, and in contrast to block-level elements, you can't adjust their width and height. Typical inline elements are <span>, <a>, <img>, etc.
To make elements behave like they are inline, you need to specify the inline value of the display property.

