ERLEDIGT
JA
JA
ANTWORTEN
2
2
ZUGRIFFE
1047
1047
EMPFEHLEN
-
15.05.09 12:08 #1
- Registriert seit
- May 2009
- Beiträge
- 2
Hallo,
aus einen CMS System (Magnolia) wurde eine Homepage generiert mit CSS und HTML Code.
Für die Navigation (horizontal) sind drei Ebenen vorgesehen, die dann "aufgeblättert" werden wenn der vorherige Menüpunkt aktiv ist.
Das CMS System hat das mit "position" realisiert (teils mit absolute und relative). Jedoch wird die zweite und dritte Ebene im IE eingerückt dargestellt. Die Navigationsleiste beginnt dann immer unterhalb des aktiv gewählten Menüpunktes. Im FF dagegen stimmt die anzeige.
An was kann das denn liegen? Ich denke es ist vermutlich nicht die optimale Lösung das mit "position" zu machen. Aber das System hat es so generiert und wenn möglich würde ich es gerne so belassen. An dem HTML Code kann man nichts ändern, lediglich die CSS kann angepasst werden.
Herzlichen Dank schon mal. Ich habe mich bereits drei Tage damit befasst und schon einiges probiert aber die Einrückung konnte ich bislang nicht umgehen. Scheinbar mal wieder ein IE Problem. Ähnliche Probleme habe ich auch noch nicht gefunden.
Bilder:
Es soll so wie auf dem ersten Bild aussehen (links bündig). Im FF ist die Anzeige in Ordnung.
So wie auf dem zweiten Bild sieht es im IE aus. Seltsam eingerückt.
Anzeige im Firefox:

Anzeige im Internet Explorer:

Es folgt ein Auszug auf der CSS und aus der HTML Datei:
CSS (nur der Teil für die Navigation):
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
/* GLOBAL HORIZONATAL NAVIGATION -------------------------------- */ [COLOR="Red"][B]/* 1st level horizontal subnav */[/B][/COLOR] #nav-global { border-top: 1px solid #4a4a4a; } #nav-global.plus-navsub { min-height: 6.8em; height: 6.8em; /* IE 6 */ } #wrapper > #nav-global.plus-navsub { height: auto; } [COLOR="red"][COLOR="Red"][B]#nav-global ul { --> Das ist für die erste Ebene position: relative; background: black url(../img/bgs/nav-global-line.png) 0 93% repeat-x; float: left; width: 100%; margin: 0 0 24px 0; list-style: none; }[/B][/COLOR][/COLOR] #nav-global.plus-navsub ul { border-bottom: none; } #nav-global li { float: left; margin: 2px 10px 0 0; padding-bottom: 5px; font-size: 150%; font-weight: bold; } #nav-global li a, #nav-global li a:visited, #nav-global li strong { display: block; float: left; color: #fff; text-decoration: none; } #nav-global li a { cursor: pointer; /* IE */ } /* on + open */ #nav-global li.on, #nav-global li.open { background: url(../img/bgs/nav-global.png) 50% 90% no-repeat; } #nav-global li strong, #nav-global li.open a { xxxbackground: #c0d0ec; } #nav-global li strong span, #nav-global li.open a span { padding-right: 10px; } #nav-global li span, #nav-global li.open a span { float: left; margin-left: 5px; padding: 6px 10px 5px 5px; } [COLOR="red"] [B]/* 2nd level horizontal subnav */[/B][/COLOR] [COLOR="red"][B]#nav-global ul ul { --> Das ist für die zweite Ebene position: absolute; left: 0; top: 2.3em; width: 940px; }[/B][/COLOR] #nav-global li li, #nav-global li li.on { background: none; font-size: 100%; } #nav-global li.open li span, #nav-global li.open li a, #nav-global li.open li strong{ background: none; font-weight: normal; } #nav-global li.open a { text-decoration: none; } #nav-global li.open li.on a span { font-weight: bold; color: #081c73; } #nav-global li li a:hover, #nav-global li li a:active, #nav-global li li a:focus, #nav-global li li a:hover span, #nav-global li li a:active span, #nav-global li li a:focus span { background: none; color: #081c73; } [COLOR="red"][B]/* 3nd level horizontal subnav */[/B] [B]#nav-global ul ul ul { --> Das ist für die dritte Ebene position: absolute; left: 0; top: 2.2em; width: 940px; }[/B][/COLOR] #nav-global li li li, #nav-global li li li.on { background: none; font-size: 100%; } #nav-global li li.open li span, #nav-global li li.open li a, #nav-global li li.open li strong{ background: none; font-weight: normal; } #nav-global li li.open a { text-decoration: none; } #nav-global li li.open li.on a span { font-weight: bold; color: #081c73; } #nav-global li li li a:hover, #nav-global li li li a:active, #nav-global li li li a:focus, #nav-global li li li a:hover span, #nav-global li li li a:active span, #nav-global li li li a:focus span { background: none; color: #081c73; }
HTML (nur der Teil der Navigation):
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
<div id="nav-global" class="plus-navsub"> <h6>Navigation</h6> [COLOR="red"]<ul>[/COLOR] <li id="nav-sec-home"> <a href="/Author/Home.html"><span>Home</span></a> </li> <li id="nav-sec-unternehmen"> <a href="/Author/Home/Unternehmen.html"><span>Unternehmen</span></a> </li> <li id="nav-sec-Produkt" class="open"> <a href="/Author/Home/Produkt.html"><span>Produkt</span></a> [COLOR="red"]<ul>[/COLOR] <li> <a href="/Author/Home/Produkt/Wozu_IdM-.html"><span>Anwendung</span></a> </li> <li class="open"> <a href="/Author/Home/Produkt/Bausteine.html"><span>Bausteine</span></a> [COLOR="red"] <ul>[/COLOR] <li> <a href="/Author/Home/Produkt/Bausteine/Provisioning.html"><span>Provisioning</span></a> </li> <li> <a href="/Author/Home/Produkt/Bausteine/Compliance.html"><span>Compliance</span></a> </li> <li> <a href="/Author/Home/Produkt/Bausteine/Single_Sign_On.html"><span>Single Sign On</span></a> </li> <li class="on"> <a href="/Author/Home/Produkt/Bausteine/Workflow_Content.html"><strong><[COLOR="red"]span><em>You are here:</em>Workflow -..</span></[/COLOR]strong></a> </li> </ul> </li> <li> <a href="/Author/Home/Produkt/Produkte.html"><span>Produkte</span></a> </li> <li> <a href="/Author/Home/Produkt/Stolpersteine.html"><span>Stolpersteine</span></a> </li> </ul> </li> <li id="nav-sec-leistung"> <a href="/Author/Home/Leistung.html"><span>Leistung</span></a> </li> <li id="nav-sec-studien_download"> <a href="/Author/Home/Studien_Download.html"><span>Studien / Download</span></a> </li> <li id="nav-sec-projekte_referenzen"> <a href="/Author/Home/Projekte_Referenzen.html"><span>Projekte</span></a> </li> <li id="nav-sec-karriere"> <a href="/Author/Home/Karriere.html"><span>Karriere</span></a> </li> </ul> </div><!-- end nav-global -->
Ich hoffe es hat jemand einen Rat. Falls noch mehr Code notwendig sein sollte kann ich den gerne nochschicken.
Ich bedanke mich dafür, dass ihr das anschaut und vielleicht hat ja wirklich jemand eine Idee warum das so sein könnte.
LG
IngoGeändert von DerPilot81 (15.05.09 um 12:11 Uhr)
-
15.05.09 12:14 #2Maik Tutorials.de Gastzugang
-
15.05.09 14:29 #3
- Registriert seit
- May 2009
- Beiträge
- 2
Hallo Maik,
danke für Deine Antwort.
Da die HP leider nur durch eine Anmeldung in einem System möglich ist habe ich versucht ein offline Demo zu erstellen. Dabei ist mir aufgefallen, dass der Fehler nicht reproduzierbar ist. Habe nun einige Seiten und das Stylesheet lokal gespeichert und dann werden die Untermenüpunkte seltsamerweise richtig angezeigt.
Es ist scheinbar ein IE 6 & 7 spezifisches Problem.
Wie ich gerade gesehen habe klappt es im IE 8 ohne Probleme.
Dennoch seltsam, warum es lokal im IE 7 funktioniert.
Vielen Dank.
IngoGeändert von DerPilot81 (15.05.09 um 14:38 Uhr)
Ähnliche Themen
-
Ole Automation - Menüpunkt "save as" etc aktivieren, wie?
Von mo84 im Forum Swing, Java2D/3D, SWT, JFaceAntworten: 1Letzter Beitrag: 18.05.12, 11:16 -
HTML: style="position: absolute;..."
Von kfust im Forum CSSAntworten: 1Letzter Beitrag: 01.04.09, 16:07 -
"object" und "position:relative"
Von tobee im Forum CSSAntworten: 2Letzter Beitrag: 09.12.08, 14:59 -
Div-Container bei "position:absolute" im Browser zentrieren
Von Gifty43 im Forum CSSAntworten: 2Letzter Beitrag: 05.06.07, 21:37 -
PHP: "Sie sind hier"-Navigation à la "Home > Bilder ..."
Von Der_baum im Forum PHPAntworten: 6Letzter Beitrag: 20.04.07, 17:39





Zitieren

Login





