CSS display property with the inline value
The inline
value of the display
property is the correct answer. As a result, the list items will flow horizontally and take up as little space as possible. As the example shows, elements displayed inline can coexist with other elements on a line and don't force a line break to begin in the document flow.