Hi!
I am building an XHTML site. In respect to the XML philosophy, I think one should organise the navigation menus in a way that it represents some sort of strucutre in the code.
So:
<ul>
<li><a href="link1.html">Menu1</a></li>
<li>a href="link2.html">Menu2</a></li>
</ul>
would be appropriate (and not tables).
My question is, how can you 'hack' the <li> tags using CSS, so that they display their items in a horizontal line, like this:
Menu1 Menu2
Later I want to embed sumbenus, that should look like this:
Menu1 Menu2
menu1.1 menu1.2 menu1.3
I think once I can put the <li> items in a horizontal line, I can solve the second question...
Thank you very much for your help in advance,
Balint
I am building an XHTML site. In respect to the XML philosophy, I think one should organise the navigation menus in a way that it represents some sort of strucutre in the code.
So:
<ul>
<li><a href="link1.html">Menu1</a></li>
<li>a href="link2.html">Menu2</a></li>
</ul>
would be appropriate (and not tables).
My question is, how can you 'hack' the <li> tags using CSS, so that they display their items in a horizontal line, like this:
Menu1 Menu2
Later I want to embed sumbenus, that should look like this:
Menu1 Menu2
menu1.1 menu1.2 menu1.3
I think once I can put the <li> items in a horizontal line, I can solve the second question...
Thank you very much for your help in advance,
Balint