[TYPO3] Problem with menu layout CSS

Almir . almir820 at hotmail.com
Wed Oct 11 14:04:16 CEST 2006


Hi all!
 
I have a problem with my menu in typo3 3.8.1. It looks great in my template but when I put it in Typo3 the layout changes.
 
The menu should look like this, this is my template: http://www.dabar.se/fileadmin/sask/template2.htm
 
But in typo3 it looks like this: www.dabar.se
 
The menu is vertical in typo3 but it should be horizontal just like in the template.
 
This is my HTML code:
 
<table width="760" border="0" align="center" id="menytabell">  <tr>    <td><!--###MENU###  start-->         <ul id="meny"><li><a href="#">Aktuellt</a></li><li><a href="#">Om oss</a></li><li><a href="#">Kontakt</a></li><li><a href="#">L&auml;nkar</a></li><li><a href="#">K&ouml;p & S&auml;lj</a></li><li><a href="#">Skridskoskola</a></li></ul>         <!--###MENU###  stop--></td>  </tr></table>
 
This is my CSS:
TD#menytabell {display:inline; vertical-align:top; height:20px; }#meny{ vertical-align:center; margin-left: 0; padding-left: 0; font-size: 100%;}#meny li{display: inline; list-style-type: none;}#meny a{padding: 0.25em 1em; text-decoration: none; color:#000000; font-weight:bold;}
#meny a:link{color: #000000; }#meny a:visited{color: #000000; }#meny a:hover{font-size:15px; }#meny a#current{background: #FFCC66; color: #000000;}
 
This is my TypoScript:
page = PAGEpage.typeNum = 0page.stylesheet = fileadmin/sask/main2.css page.10 = TEMPLATEpage.10 {  template = FILE  template.file = fileadmin/sask/template2.htm
subparts.MENU = HMENU  subparts.MENU.minItems = 6  subparts.MENU.maxItems = 7  subparts.MENU.1 = TMENU  subparts.MENU.1.NO {allWrap = |*| <li> | </li> || <li> | </li> |*| }
 
  subparts.MENU_LEVEL1 = HMENU  subparts.MENU_LEVEL1.entryLevel = 1  subparts.MENU_LEVEL1.1 = TMENU  subparts.MENU_LEVEL1.1.NO {    allWrap = <tr height="21"><td height="21"> | </td></tr>  }
}
 
Any idéa what may be wrong? Thank you in advance.
 
Best regards,
Almir Orle
 
 

_________________________________________________________________
Skaffa nya Windows Live Messenger!
http://get.live.com/messenger/overview


More information about the TYPO3-english mailing list