228k views
1 vote
One of the ways to create a horizontal navigation menu from an unordered list is to a. set the display property of the element within each li element to inline b. set the float property of the elelment within each li element to left c. set the clear property of each li element to both d. set the display property of each li element to inline

User Jzqa
by
5.7k points

1 Answer

4 votes

Answer: a. set the display property of the element within each li element to inline

Explanation: In an unordered list, ul signifies the list and li signifies the elements in the list. When you want to display the elements in a list in a horizontal form, for example if you need a horizontal menu, a quick way of doing this is setting the display of li to inline by writing it as follows in css:

li {

Display: inline;

}

This will order the elements in the list into the form of a horizontal menu .

User Kevin Ternet
by
5.4k points