Hallo !!
Bin schon fast am Rad drehen, weiss nicht mehr was ich machen soll. Habe alles mögliche schon versucht mit dem File whatever:hover und sonst nocht andere kleine Tricks.
Aber ich kriege meine Hintergrundfrabe einfach nicht auf das Li-Element. Ich weiss dass der IE 6 das Hover nicht kennt, aber ich dachte dass ich wenigstens eine Lösung finde. Wer kann mir bei dieser kniffligen Aufgabe helfen.
Hier meine HTML Links im Template :
<td width="904" colspan="3" class="navigation_column"><div id="mainnavcontainer">
<ul>
<!-- ###HAUPT_NAVI### start-->
<li><a href="#">Home</a></li>
<li><a href="#">Über uns</a></li>
<li><a href="#">Editorial</a></li>
<li><a href="#">Agenda</a></li>
<li><a href="#">Fotogalerie</a></li>
<li><a href="#">Links</a></li>
<!-- ###HAUPT_NAVI### stop-->
</ul>
</div></td>
Dann hier mein Menü mit Typo3 :
temp.HAUPTNAVIGATION = HMENU
temp.HAUPTNAVIGATION {
wrap = <div class="menu1"> | </div>
# Hauptmenue
1 = TMENU
1 {
wrap = <ul> | </ul>
expAll = 1
NO.ATagTitle.field = subtitle//title
NO.wrapItemAndSub = <li> | </li>
NO.stdWrap.prepend = COA
NO.stdWrap.prepend.10.wrap = ~ |
IFSUB = 1
IFSUB {
wrapItemAndSub = <li> | </li>
allWrap = | <!--<![endif]-->
linkWrap = |<!--[if IE 7]><!-->
ATagBeforeWrap = 1
}
ACT < .NO
ACT = 1
ACT.ATagParams = class=dropact
ACTIFSUB < .IFSUB
ACTIFSUB.ATagParams = class=dropact
}
2 = TMENU
2 {
wrap = <!--[if lte IE 6]><table><tr><td><![endif]--><ul> | </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
expAll = 1
NO.ATagTitle.field = subtitle//title
NO.wrapItemAndSub = <li> | </li>
IFSUB = 1
IFSUB {
wrapItemAndSub = <li> | </li>
allWrap = | <!--<![endif]-->
linkWrap = |<!--[if IE 7]><!-->
ATagBeforeWrap = 1
ATagParams = class=drop
}
}
3 < .2
4 < .2
}
Und zu guterletzt mein CSS :
.menu1 {
width:904px;
font-size:0.85em;
position:relative;
z-index:100;
}
/* remove all the bullets, borders and padding from the default list styling */
.menu1 ul {
padding:0;
margin:0;
height:40px;
background:#fdc300;
}
.menu1 ul ul {
height:40px;
line-height:40px;
width:150px;
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu1 li {
float:left;
width:150px;
position:relative;
text-align:center;
line-height:40px;
}
/* style the links for the top level */
.menu1 a, .menu1 a:visited {
display:inline;
font-size:14px;
text-decoration:none;
color:#FFFFFF;
width:150px;
height:40px;
border:0px solid #fdc300;
border-width:0px;
background:#fdc300;
line-height:40px;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu1 a, * html .menu1 a:visited {
width:150px;
w\idth:149px;
}
.menu1 ul li {
width:150px;
height:40px;
line-height:40px;
background:#fdc300;
}
.menu1 li:hover {
background:#FF9900;
}
.menu1 li a:hover {
background:#FF9900;
width:150px;
height:40px;
line-height:40px;
}
/* style the second level background */
.menu1 ul ul a.drop, .menu1 ul ul a.drop:visited {
background:#000;
}
/* style the second level hover */
.menu1 ul ul a.drop:hover{
background:#FF9900;
}
.menu1 ul ul :hover > a.drop {
background:#000;
}
/* style the third level background */
.menu1 ul ul ul a, .menu1 ul ul ul a:visited {
background:#fdc300;
}
/* style the third level hover */
.menu1 ul ul ul a:hover {
background:#FF9900;
}
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu1 ul ul {
visibility:hidden;
position:absolute;
height:40px;
top:40px;
left:0;
width:150px;
}
/* another hack for IE5.5 */
* html .menu1 ul ul {
top:39px;
t\op:40px;
}
/* position the third level flyout menu */
.menu1 ul ul ul{
left:150px;
top:0;
width:150px;
}
/* position the third level flyout menu for a left flyout */
.menu1 ul ul ul.left {
left:-150px;
}
/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu1 table {position:absolute; top:0; left:0;}
/* style the second level links */
.menu1 ul ul a, .menu1 ul ul a:visited {
background:#fdc300;
color:#FFFFFF;
height:40px;
line-height:40px;
padding:5px 10px;
width:149px
/* yet another hack for IE5.5 */
}
* html .menu1 ul ul a{
width:150px;
w\idth:149px;
}
/* style the top level hover */
.menu1 a:hover, .menu1 ul ul a:hover{
color:#FFFFFF;
background:#FF9900;
}
.menu1 :hover > a, .menu1 ul ul :hover > a {
color:#ffffff;
background:#FF9900;
}
/* make the second level visible when hover on first level list OR link */
.menu1 ul li:hover ul,
.menu1 ul a:hover ul{
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu1 ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu1 ul :hover ul :hover ul{
visibility:visible;
}
Bin für jede Hilfe dankbar !! Bin selber auch noch auf der Suche nach der Lösung, aber vielleicht kennt jemand eine gute Lösung.
Grüsse Marijo