Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unordered lists for horizontal menus? (CSS)

Status
Not open for further replies.

fuli42

Technical User
Jul 9, 2002
74
HU
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=&quot;link1.html&quot;>Menu1</a></li>
<li>a href=&quot;link2.html&quot;>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

 
THankx, Petey,

Yes, in fact I followed the same link to arrive to the one I've posted above ;)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top