Sieht ja ganz nett aus, habe gerade nic hso die Zeit aber 2 Punkte schon mal:
1. <ul> ist schon ein
block-Element, von daher kannst du dir den
<div id="menu"> sparen und direkt
<ul id="menu"> schreiben ;)
2. Du kannst deine
background Attribute auch zusammenfassen um Code zu sparen und die Übersicht zu wahren.
Statt...
- Code: Alles auswählen
background-image: url(../png/navi/welcome.png);
background-repeat: no-repeat;
background-position: 0px 0px;
background-color: transparent;
...schreibst du einfach:
- Code: Alles auswählen
background: transparent url(../png/navi/welcome.png) no-repeat 0 0;
Vielleicht solltest du dir auch eine gewisse Ordnung in deinem CSS Code angewöhnen, zum Beispiel Formatierungne für die Positionierung und welche für Farben, etc. trennen, ein Beispiel:
- Code: Alles auswählen
ul#navi {
/* positionierung */
/* margin-top: 0px; // kommt irgendwie 2 mal vor */
margin: 0px auto;
/* aussehen */
width: 100%;
background: rgb(69,72,77); /* Old browsers */
background-color: #393939;
box-shadow: 2px 2px 3px #393939;
border-radius: 15px;
/* textgestaltung */
font-family: Georgia;
font-size: 110%;
color: black;
text-align: center;
/* solch riesen codes würde ich auch immer abtrennen */
background: -moz-linear-gradient(top, rgba(69,72,77,1) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(69,72,77,1)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* W3C */
}
Nur border-radius ist übrigens ein bisschen mau, versuche es mal so:
- Code: Alles auswählen
-webkit-border-radius: 15px;
-khtml-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
Bei box-shadow das Selbe:
- Code: Alles auswählen
-webkit-box-shadow: 10px 10px 5px #cefa42;
-moz-box-shadow: 10px 10px 5px #cefa42;
box-shadow: 10px 10px 5px #cefa42;
Solltest du ein Fan des IE sein dann noch Folgendes:
- Code: Alles auswählen
-ms-filter:"progid:DXImageTransform.Microsoft.DropShadow(color=#333333, offx=2, offy=2)"; /* IE ab V.8 */
filter:progid:DXImageTransform.Microsoft.DropShadow(color=#333333, offx=2, offy=2); /* IE unter V.8 */
Wenn du deinen Code so aufbesserst ist er für dich und uns leichter zu lesen, die Anfälligkeit für Fehler sinkt und du schreibst
"sauberen / guten" Code ;)