css float

[1/1]

  1. Flex Your Layout Muscles: Using Flexbox to Keep Elements on One Line
    This approach changes the display type of your elements from block-level (occupying entire lines) to inline-block. This allows them to sit side-by-side like text