If you want list items to display horizontally rather than vertically, the CSS property to adjust is ________.
- display: block;
- display: inline;
- float: left;
- text-align: center;
To make list items display horizontally (side by side) instead of vertically (stacked), you should adjust the CSS property "float: left." This property is used to float elements next to each other.
Loading...
Related Quiz
- If two conflicting styles affect an element, how does the browser decide which one to apply?
- Which property in CSS is used to set the width of the content area of an element?
- The attr() function in CSS is used to retrieve the value of an HTML ______.
- In a media query, which feature is commonly used to detect the width of the viewport?
- What is the difference between the em and rem units when setting font size in CSS?