Einfache Verticale Menü Tutorial
Dies ist eine sehr einfache, verticale CSS-Menü. Dieses Tutorial hilft bei der Schaffung eines einfachen und attraktiven CSS-Menü mit einem kühlen hover Effekt. 
Schritt: 1
Zunächst lassen Sie uns schreiben, CSS-Code für das Menü. hier geht der Code ..
# nav ul ( margin: 0; padding: 0; list-style-type: none; )# nav ul li ( ; /*IE 6*/ display: inline; / * IE 6 * / )display :block ; background : #d9d9d9 ; width : 200px ; text-decoration :none ; padding : 4px /*padding for top, bottom*/ 7px /*padding for left, right*/ ; border-bottom : 1px solid #eeeeee ; border-top : 1px solid #cccccc ; border-left : 5px solid # 333333 ; color : # 333333 ; # nav ul li a (display: block; background: # d9d9d9; width: 200px; text-decoration: none; padding: 4px / * padding für oben, unten * / 7PX / * padding für links, rechts * /; border - bottom: 1px solid # eeeeee; border-top: 1px solid # CCCCCC; border-left: 5px solid # 333333; color: # 333333;{ border-left-color : #0099FF ; color : #0066FF ; background : #c4c4c4 ; } # nav ul li a: hover (border-left-color: # 0099FF; color: # 0066FF; background: # c4c4c4;)
Schritt: 2
Jetzt erstellen wir einen einfachen HTML-Struktur.
> <ul> <li> <a href = "#" > Home </a> </li> <li> <a href = "#" > About Us </a> </li> <li> <a href = "#" > Services </a> </li> <li> <a href = "#" > Sitemap </a> </li> <li> <a href = "#" > Contact </a> </li> < /ul> </div> <div id = "nav"> <ul> <li> <a href = "#"> Home </ a> </ li> <li> <a href = "#"> Über uns </ a> </ li> <li> <a href = "#"> Dienstleistungen </ a> </ li> <li> <a href = "#"> Sitemap </ a> </ li> <li> <a href = " # "> Kontakt </ a> </ li> </ ul> </ div>
Yeah ..! ihre getan! sehen, wie einfach ist es, ein CSS-Menü ... Eine Demo ..?
Weitere Artikel:
Wenn Sie viel Freude beim Lesen dieses Artikels finden Sie andere Verwandte Artikel unter:




















































Sag uns Deine Meinung!