[TYPO3] how to make a different horizontal menu

Peter Klein peter at umloud.dk
Fri Dec 30 14:22:42 CET 2005


Hi Henrik. Simply create a TMENU in 2 levels, where the output is a 
unordered list (UL/LI) similar to this example:

-- cut --
 <DIV id="menu">
  <UL>
   <LI>Main 1
   <UL>
    <LI>Main 1 Sub 1</LI>
    <LI>Main 1 Sub 2</LI>
   </UL></LI>
   <LI>Main 2
   <UL>
    <LI>Main 2 Sub 1</LI>
    <LI>Main 2 Sub 2</LI>
    <LI>Main 2 Sub 3</LI>
   </UL></LI>
  </UL>
 </DIV>
-- cut --

Then you can position the menus like you need with these lines of CSS:

-- cut --
#menu UL {list-style:none;margin:0;padding:0;}
#menu UL LI { float: left;}
#menu UL LI UL { clear: left;}
#menu UL LI UL LI { float: none;}
-- cut --

You can find TS to make an unordered list menu on the typo3.org mailinglist 
archive or here:
http://www.typo3wizard.com/en/snippets/menus/sitemap-as-unordered-list-ulli.html

---
Peter Klein / Umloud Untd


"Henrik Andersen - OctoVision I/S" <ha at octovision.dk> wrote in message 
news:mailman.4068.1135905400.10878.typo3-english at lists.netfielders.de...
Thanks Marlies for your answer.

My menu has to look like this all the time:

General     Teams

About       Soccer
Contact     Tennis
Members     Swimming

So all menulinks in level 1 and 2 must be vissible all the time. Is that 
possible?


Regards

Henrik





More information about the TYPO3-english mailing list