Having line breaks between <li> s
I have a horizontal menu consisting of <li> elements with display: inline .
Elements should be next to each other.
In the source code, I would like each li on one line to simplify debugging:
<li class="item1 first"> ... </li> <li class="item2"> ... </li> ... However, if I add \n after each item, the menu items have a gap between them. I understand that this is the intended behavior, but is there a way to turn it off with smart βwhite spaceβ or something else?
Edit: I cannot use float, it is in CMS with the ability to center list items.
Do you have the ability to edit CSS? If so, you can try adjusting the padding / fields to the <li> element. He seems to have a lot of reading effort.
Depending on which browser you use, you may get HTML Tidy http://users.skynet.be/mgueury/mozilla/ , which gives you the option to remove your source, which may be useful enough for debugging