<div> <ul> <li>First</l1> <li>Second</li> <li>Third</li> <li>Fourth</li> </ul> </div> div { width: 100%; } li { list-style: none; float: left; }
With CSS, is there a way to make LI tags automatically fill the entire width of the parent div evenly? Thus, each of them will take 25%.
Setting "width" as 25% will obviously work, but this is not the solution I'm after. This menu is dynamically created, and new items are created and deleted from time to time.
Greetings
atb
source share