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...
Dropdown mit css und js
Beitrag
<blockquote data-quote="ItsNeko" data-source="post: 1303611" data-attributes="member: 197999"><p>Hey leute,</p><p>ich bastel gerade an einer dropdown Navigation für meine Hompage,</p><p>allerdings habe ich die atm nur lokal.</p><p>Soweit funktionier auch alles, nur das problem ist, das das dropdown quasi hinter dem text landet. </p><p></p><p></p><p>hier der HTMLteil</p><p>[html]</p><p><div id="dropcounter1" class="lvl1" onmouseover="dropdown('counter1')" onmouseout="dropup('counter1')"><h3>Navigation</h3><div id="downcounter1" style="visibility:hidden;"></p><p><div class="lvl2"><a href="index.php?Page=home" >Home</a></div></p><p><div class="lvl2"><a href="index.php?Page=news" >News</a></div></p><p><div class="lvl2"><a href="index.php?Page=about" >About</a></div></p><p><div class="lvl2"><a href="index.php?Page=links" >Links</a></div></p><p><div class="lvl2"><a href="index.php?Page=stats" >Statistik</a></div></p><p><div class="lvl2"><a href="index.php?Page=justforfun" >Just for Fun</a></div></p><p><div class="lvl2"><a href="index.php?Page=userliste" >Userliste</a></div></p><p><div class="lvl2"><a href="index.php?Page=Date" >Kalender</a></div></p><p></div></div></p><p></p><p><div id="dropcounter2" class="lvl1" onmouseover="dropdown('counter2')" onmouseout="dropup('counter2')"><h3>Projekte</h3><div id="downcounter2" style="visibility:hidden;"></p><p><div class="lvl2"><a href="index.php?Page=Sudoku" >Sudoku</a></div></p><p><div class="lvl2"><a href="index.php?Page=p_homepage" >Homepages</a></div></p><p><div class="lvl2"><a href="index.php?Page=p_wp" >Wallpaper</a></div></p><p><div class="lvl2"><a href="index.php?Page=p_scripts" >Scripts</a></div></p><p><div class="lvl2"><a href="index.php?Page=p_games" >Games</a></div></p><p></div></div></p><p></p><p><div id="dropcounter3" class="lvl1" onmouseover="dropdown('counter3')" onmouseout="dropup('counter3')"><h3>Tutorials</h3><div id="downcounter3" style="visibility:hidden;"></p><p><div class="lvl2"><a href="index.php?Page=Tutorials&id=1" >PHP</a></div></p><p><div class="lvl2"><a href="index.php?Page=Tutorials&id=2" >JavaScript</a></div></p><p><div class="lvl2"><a href="index.php?Page=Tutorials&id=3" >ToDo</a></div></p><p></div></div></p><p></p><p><div id="dropcounter4" class="lvl1" onmouseover="dropdown('counter4')" onmouseout="dropup('counter4')"><h3>Interaktiv</h3><div id="downcounter4" style="visibility:hidden;"></p><p><div class="lvl2"><a href="index.php?Page=forum" >Forum</a></div></p><p><div class="lvl2"><a href="index.php?Page=gb" >Guestbook</a></div></p><p><div class="lvl2"><a href="index.php?Page=kontakt" >Kontakt</a></div></p><p><div class="lvl2"><a href="index.php?Page=partner" >Partners</a></div></p><p></div></div></p><p>[/html]hier css</p><p>[code]</p><p>#navigation h3{</p><p> margin-top:0px;</p><p> margin-bottom:10px;</p><p> padding:3px;</p><p>}</p><p></p><p>#navigation .lvl1{</p><p> width:150px;</p><p> float:left; </p><p> text-align:center;</p><p> background-image:none;</p><p> background-repeat:no-repeat;</p><p> background-position:0px 25px;</p><p> padding-bottom:10px;</p><p> height:20px;</p><p> z-index:100;</p><p>}</p><p>#navigation .lvl2{</p><p> padding-top:2px;</p><p> height:24px;</p><p> width:149px;</p><p> background-image:url(/templates/prototype/images/navigation_dropdown_part.png);</p><p> background-repeat:no-repeat;</p><p> background-position:2px 0px;</p><p> background-color:#252525;</p><p> color:white;</p><p> z-index:200;</p><p></p><p>}</p><p>#navigation .lvl2 a{</p><p> color:white;</p><p> text-decoration:none;</p><p> height:24px;</p><p> width:149px;</p><p> display:block;</p><p>}</p><p>#navigation .lvl2:hover{</p><p> height:24px;</p><p> background-image:url(/templates/prototype/images/navigation_dropdown_part_hover.png);</p><p> background-repeat:no-repeat;</p><p> background-position:2px 0px;</p><p>}</p><p>[/code]Hat jemand vielleicht eine Idee woran das liegen kann? </p><p>bzw. was ich dagegen machen kann?</p></blockquote><p></p>
[QUOTE="ItsNeko, post: 1303611, member: 197999"] Hey leute, ich bastel gerade an einer dropdown Navigation für meine Hompage, allerdings habe ich die atm nur lokal. Soweit funktionier auch alles, nur das problem ist, das das dropdown quasi hinter dem text landet. hier der HTMLteil [html] <div id="dropcounter1" class="lvl1" onmouseover="dropdown('counter1')" onmouseout="dropup('counter1')"><h3>Navigation</h3><div id="downcounter1" style="visibility:hidden;"> <div class="lvl2"><a href="index.php?Page=home" >Home</a></div> <div class="lvl2"><a href="index.php?Page=news" >News</a></div> <div class="lvl2"><a href="index.php?Page=about" >About</a></div> <div class="lvl2"><a href="index.php?Page=links" >Links</a></div> <div class="lvl2"><a href="index.php?Page=stats" >Statistik</a></div> <div class="lvl2"><a href="index.php?Page=justforfun" >Just for Fun</a></div> <div class="lvl2"><a href="index.php?Page=userliste" >Userliste</a></div> <div class="lvl2"><a href="index.php?Page=Date" >Kalender</a></div> </div></div> <div id="dropcounter2" class="lvl1" onmouseover="dropdown('counter2')" onmouseout="dropup('counter2')"><h3>Projekte</h3><div id="downcounter2" style="visibility:hidden;"> <div class="lvl2"><a href="index.php?Page=Sudoku" >Sudoku</a></div> <div class="lvl2"><a href="index.php?Page=p_homepage" >Homepages</a></div> <div class="lvl2"><a href="index.php?Page=p_wp" >Wallpaper</a></div> <div class="lvl2"><a href="index.php?Page=p_scripts" >Scripts</a></div> <div class="lvl2"><a href="index.php?Page=p_games" >Games</a></div> </div></div> <div id="dropcounter3" class="lvl1" onmouseover="dropdown('counter3')" onmouseout="dropup('counter3')"><h3>Tutorials</h3><div id="downcounter3" style="visibility:hidden;"> <div class="lvl2"><a href="index.php?Page=Tutorials&id=1" >PHP</a></div> <div class="lvl2"><a href="index.php?Page=Tutorials&id=2" >JavaScript</a></div> <div class="lvl2"><a href="index.php?Page=Tutorials&id=3" >ToDo</a></div> </div></div> <div id="dropcounter4" class="lvl1" onmouseover="dropdown('counter4')" onmouseout="dropup('counter4')"><h3>Interaktiv</h3><div id="downcounter4" style="visibility:hidden;"> <div class="lvl2"><a href="index.php?Page=forum" >Forum</a></div> <div class="lvl2"><a href="index.php?Page=gb" >Guestbook</a></div> <div class="lvl2"><a href="index.php?Page=kontakt" >Kontakt</a></div> <div class="lvl2"><a href="index.php?Page=partner" >Partners</a></div> </div></div> [/html]hier css [code] #navigation h3{ margin-top:0px; margin-bottom:10px; padding:3px; } #navigation .lvl1{ width:150px; float:left; text-align:center; background-image:none; background-repeat:no-repeat; background-position:0px 25px; padding-bottom:10px; height:20px; z-index:100; } #navigation .lvl2{ padding-top:2px; height:24px; width:149px; background-image:url(/templates/prototype/images/navigation_dropdown_part.png); background-repeat:no-repeat; background-position:2px 0px; background-color:#252525; color:white; z-index:200; } #navigation .lvl2 a{ color:white; text-decoration:none; height:24px; width:149px; display:block; } #navigation .lvl2:hover{ height:24px; background-image:url(/templates/prototype/images/navigation_dropdown_part_hover.png); background-repeat:no-repeat; background-position:2px 0px; } [/code]Hat jemand vielleicht eine Idee woran das liegen kann? bzw. was ich dagegen machen kann? [/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...
Dropdown mit css und js
Oben