I want to use a list for horizontal links. I understand I need to use display: block
for the ul
and display: inline
for the li.
There are a number of questions for getting constant width for the li
elements, but I want constant space between them, they contain text of different width themselves.
Thanks.
I think my question was unclear:
I am looking to have a fixed width ul
with unknown width li
elements and want to have constant space between them, not constant width li
elements. Is this only achievable with javascript?