1Danke
ERLEDIGT
NEIN
NEIN
ANTWORTEN
3
3
ZUGRIFFE
972
972
EMPFEHLEN
-
Hallo Zusammen
Ich habe auf der folgenden Website ein Problem mit der Positionierung im IE.
www.coaching-schwung.ch
Im Firefox könnt ihr erkennen, wie das Menu korrekt sein sollte. Im IE wird es zu Weit oben angezeigt, weil er komischerweise das position:absolute nicht interpretieren kann.
Hat jemand einen Tipp für mich, wie ich das Problem lösen kann?
CSS Menu Abschnitt:
Menu Quellcode:HTML-Code:nav { position: absolute; text-align: center; font-size: 20px; top: 151px; } #dropline,#dropline ul { padding: 0; margin: 0; list-style: none; width: 700px; } #dropline table { border-collapse: collapse; margin: -1px -10px; 0 0; padding: 0; width: 0; height: 0; font-size: 14px; } #dropline li { float: left; height: 38px; margin-right: 1px; } #dropline li a { float: left; display: block; height: 38px; line-height: 38px; padding: 0 35px 0 10px; font-size: 17px; color: #82abff; text-decoration: none; } #dropline li ul a { font-size: 14px; color: #82abff; } #dropline li:hover>a { color: #FFF; } #dropline li ul { position: absolute; top: 33px; left: -9999px; z-index: 10; background: url(images/sub_back.png) left top; } #dropline li ul.floatRight li { float: right; } #dropline :hover ul,#dropline :hover ul :hover ul,#dropline :hover ul :hover ul :hover ul,#dropline :hover ul :hover ul :hover ul :hover ul,#dropline :hover ul :hover ul :hover ul :hover ul :hover ul { left: 0; background: url(images/sub_back.png) left bottom; repeat: no-repeat; }
Danke im Voraus für eure Tipps!HTML-Code:<nav> <ul id="dropline"> <li><a href="?pid=0">Home</a></li> <li><a class="down" href="?pid=1">Coaching<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="?pid=2">...für Musiker/innen</a></li> <li><a href="?pid=4">Ressourcen und innere Quellen<!--[if gte IE 7]><!--></a><!--<![endif]--> <li><a href="?pid=5">EFT</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a class="down" href="?pid=6">Musik<!--[if gte IE 7]><!--></a><!--<![endif]--> </li> <li><a href="?pid=10">Über mich<!--[if gte IE 7]><!--></a><!--<![endif]--> </li> <li><a class="down" href="?pid=11">Aktuelles<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="?pid=12">Workshop</a></li> <li><a href="?pid=13">Konzerte</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a class="down" href="?pid=14">Kontakt<!--[if gte IE 7]><!--></a><!--<![endif]--> </li> </ul> </nav>
the_royal
-
Hi,
zunächst musst du für den IE mit Hilfe der Methode createElement auch das nav-Element bekannt machen.
In der CSS-Deklaration zum nav-Element wird die erste top-Definition auskommentiert und das Element zusätzlich mit einem left-Wert ausgestattet.Code :1
document.createElement("nav");
CiaoCode :1 2 3 4 5 6 7 8
nav { position: absolute; text-align: center; /*top: 50px;*/ font-size: 20px; top: 151px; left: 0; }
QuaeseVielleicht muss man manchmal vom Weg abkommen, um nicht auf der Strecke zu bleiben!
----
Der "Fortsetzungsroman" auf www.leuteforum.de
New kind to realize large scalable projects with jQuery: jQuery SDK
-
Hallo Quaese
Vielen Dank, das funktioniert so!
Leider ist jetzt noch das Problem, dass das Untermenu nicht angezeigt wird.
Vermutlich weil diese Ebene hinter der Content Ebene Liegt? Kann ich das mit z-index lösen, oder wie mache ich das am besten?
Gruss
the_royal
-
Ähnliche Themen
-
Problem bei position:absolute
Von Padde11 im Forum CSSAntworten: 6Letzter Beitrag: 29.03.10, 18:13 -
Problem mit position: absolute
Von Metha im Forum CSSAntworten: 2Letzter Beitrag: 25.11.08, 17:02 -
DIV Höhe auf 100%, bei position:absolute (IE Problem)
Von suntrop im Forum CSSAntworten: 6Letzter Beitrag: 26.04.07, 18:32 -
DIV Höhe auf 100%, bei position:absolute (IE Problem)
Von suntrop im Forum HTML & XHTMLAntworten: 2Letzter Beitrag: 26.04.07, 16:30 -
position absolute problem
Von ritasboss im Forum CSSAntworten: 3Letzter Beitrag: 14.04.05, 19:06





Zitieren


Login





