Use list item
<ul> <li><a href="...">entry 1</a></li> <li><a href="...">entry 2</a></li> ... etc </ul>
Apply "float: left;" and the percentage width for each of the elements "li". The width you choose will obviously depend on the number of records you have. To ensure that elements are cleaned correctly, apply "overflow: hidden" to the parent ("ul") element.
EDIT:
Perhaps equal distribution of horizontal space in all cases is undesirable?
- If you have several elements, the visual effect will be very different from the full Navigation Bar.
- There will be a point where you need to artificially limit the number of the item that can be added.
An extension to the approach described in detail above may be to align the last βliβ element, which will provide you with a fixed value navigation bar.
source share