PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS Menü "border-left und right" übergreifend ändern
Beitrag
<blockquote data-quote="Jens_S" data-source="post: 1339695" data-attributes="member: 274177"><p><strong>AW: CSS Menü "border-left und right" übergreifend ändern</strong></p><p></p><p>Vielen Dank für eure Antworten.</p><p>Je nach Browser haut das halt nicht hin.</p><p>@tbskalt das hat bei mir leider den selben Effekt das ich eine doppellinie habe.</p><p> </p><p>Ich habe jetzt aber eine Lösung für mich gefunden die im IE funktioniert(mal sehen welche Versionen) und in meinem Firefox.</p><p> </p><p>Und zwar habe ich nämlich meine Abstände so gemacht das die Linien wirklich überlagern und habe jedem einzelnen Menüpunkt ein Z-Index zugewiesen.</p><p>Es ist jetzt noch nicht alles perfekt geschrieben aber so funktioniert es schonmal.</p><p>Hier der Code falls es jemanden interessiert oder selber verwenden möchte oder dran weiterbasteln will.</p><p>[HTML]</p><p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"></p><p><html></p><p><head></p><p><title>Men&uuml;test</title></p><p><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></p><p><style type="text/css"></p><p><!--</p><p>body{background-color:silver;}</p><p></p><p>#nav{</p><p>width:690px;</p><p>list-style:none;</p><p>font-family:Arial;</p><p>font-size:9pt;</p><p>line-height:18pt;</p><p>text-align:center;</p><p>}</p><p></p><p>#nav li{</p><p>position:relative;</p><p>z-index:1;</p><p>display:inline;</p><p>text-align:center;</p><p></p><p>}</p><p></p><p>#nav li a.punkt{</p><p>position:relative;</p><p>display:inline;</p><p>text-decoration:none;</p><p>color:white;</p><p>font-family:Arial;</p><p>font-size:9pt;</p><p>line-height:18pt;</p><p>text-align:center;</p><p>border-right:1px solid white;</p><p>border-left:1px solid transparent;</p><p>margin-left:-4px;</p><p>padding-left:10px;</p><p>padding-right:10px;</p><p>padding-top:10px;</p><p>}</p><p></p><p>#nav li a:hover.punkt{</p><p>position:relative;</p><p>display:inline;</p><p>text-decoration:none;</p><p>color:white;</p><p>font-family:Arial;</p><p>font-size:9pt;</p><p>line-height:18pt;</p><p>text-align:center;</p><p>border:none;</p><p>border-right:1px solid #fcaf17;</p><p>border-left:1px solid #fcaf17;</p><p>margin-left:-4px;</p><p>padding-left:10px;</p><p>padding-right:10px;</p><p>padding-top:10px;</p><p>}</p><p>#nav li a.letzterpunkt{</p><p>position:relative;</p><p>display:inline;</p><p>text-decoration:none;</p><p>color:white;</p><p>font-family:Arial;</p><p>font-size:9pt;</p><p>line-height:18pt;</p><p>text-align:center;</p><p>border-left:1px solid transparent;</p><p>margin-left:-4px;</p><p>padding-left:10px;</p><p>padding-top:10px;</p><p>padding-right:10px;</p><p></p><p>}</p><p>#nav li a:hover.letzterpunkt{ position:relative;</p><p>display:inline;</p><p>text-decoration:none;</p><p>color:white;</p><p>font-family:Arial;</p><p>font-size:9pt;</p><p>line-height:18pt;</p><p>text-align:center;</p><p>border:none;</p><p>border-right:1px solid #fcaf17;</p><p>border-left:1px solid #fcaf17;</p><p>margin-left:-4px;</p><p>padding-left:10px;</p><p>padding-right:10px;</p><p>padding-top:10px;</p><p></p><p></p><p>}</p><p></p><p>--></p><p></style></p><p></head></p><p><body></p><p><ul id="nav"></p><p><li></p><p><a class="punkt" style="position:relative;z-index:1;width:50px;" href="#">Startseite</a></p><p></li></p><p></p><p><li></p><p><a class="punkt" style="position:relative;z-index:2;width:50px;" href="#">Fotogalerie</a></p><p></li></p><p></p><p><li></p><p><a class="punkt" style="position:relative;z-index:3;width:50px;" href="#">Ver&ouml;ffentlichungen</a></p><p></li></p><p></p><p><li></p><p><a class="punkt" style="position:relative;z-index:4;width:50px;" href="#">Bestellung</a></p><p></li></p><p><li></p><p><a class="punkt" style="position:relative;z-index:5;width:50px;" href="#">Kontakt</a></p><p></li></p><p><li></p><p><a class="punkt" style="position:relative;z-index:6;width:50px;" href="#">Impressum</a></p><p></li></p><p><li></p><p><a class="letzterpunkt" style="position:relative;z-index:7;width:50px;" href="#">AGB</a></p><p></li></p><p></p><p></p><p></ul></p><p></p><p></body></p><p></html></p><p>[/HTML]</p></blockquote><p></p>
[QUOTE="Jens_S, post: 1339695, member: 274177"] [b]AW: CSS Menü "border-left und right" übergreifend ändern[/b] Vielen Dank für eure Antworten. Je nach Browser haut das halt nicht hin. @tbskalt das hat bei mir leider den selben Effekt das ich eine doppellinie habe. Ich habe jetzt aber eine Lösung für mich gefunden die im IE funktioniert(mal sehen welche Versionen) und in meinem Firefox. Und zwar habe ich nämlich meine Abstände so gemacht das die Linien wirklich überlagern und habe jedem einzelnen Menüpunkt ein Z-Index zugewiesen. Es ist jetzt noch nicht alles perfekt geschrieben aber so funktioniert es schonmal. Hier der Code falls es jemanden interessiert oder selber verwenden möchte oder dran weiterbasteln will. [HTML] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Menütest</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body{background-color:silver;} #nav{ width:690px; list-style:none; font-family:Arial; font-size:9pt; line-height:18pt; text-align:center; } #nav li{ position:relative; z-index:1; display:inline; text-align:center; } #nav li a.punkt{ position:relative; display:inline; text-decoration:none; color:white; font-family:Arial; font-size:9pt; line-height:18pt; text-align:center; border-right:1px solid white; border-left:1px solid transparent; margin-left:-4px; padding-left:10px; padding-right:10px; padding-top:10px; } #nav li a:hover.punkt{ position:relative; display:inline; text-decoration:none; color:white; font-family:Arial; font-size:9pt; line-height:18pt; text-align:center; border:none; border-right:1px solid #fcaf17; border-left:1px solid #fcaf17; margin-left:-4px; padding-left:10px; padding-right:10px; padding-top:10px; } #nav li a.letzterpunkt{ position:relative; display:inline; text-decoration:none; color:white; font-family:Arial; font-size:9pt; line-height:18pt; text-align:center; border-left:1px solid transparent; margin-left:-4px; padding-left:10px; padding-top:10px; padding-right:10px; } #nav li a:hover.letzterpunkt{ position:relative; display:inline; text-decoration:none; color:white; font-family:Arial; font-size:9pt; line-height:18pt; text-align:center; border:none; border-right:1px solid #fcaf17; border-left:1px solid #fcaf17; margin-left:-4px; padding-left:10px; padding-right:10px; padding-top:10px; } --> </style> </head> <body> <ul id="nav"> <li> <a class="punkt" style="position:relative;z-index:1;width:50px;" href="#">Startseite</a> </li> <li> <a class="punkt" style="position:relative;z-index:2;width:50px;" href="#">Fotogalerie</a> </li> <li> <a class="punkt" style="position:relative;z-index:3;width:50px;" href="#">Veröffentlichungen</a> </li> <li> <a class="punkt" style="position:relative;z-index:4;width:50px;" href="#">Bestellung</a> </li> <li> <a class="punkt" style="position:relative;z-index:5;width:50px;" href="#">Kontakt</a> </li> <li> <a class="punkt" style="position:relative;z-index:6;width:50px;" href="#">Impressum</a> </li> <li> <a class="letzterpunkt" style="position:relative;z-index:7;width:50px;" href="#">AGB</a> </li> </ul> </body> </html> [/HTML] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS Menü "border-left und right" übergreifend ändern
Oben