You're working on a navigation menu where each list item should be displayed side by side. How would you achieve this using CSS?

  • Using the display: block; property.
  • Using the display: flex; property.
  • Using the display: grid; property.
  • Using the display: inline; property.
To display list items side by side in a navigation menu, you should use the display: flex; property on the parent container of the list. This allows for a horizontal layout of the list items.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *