Frage zu Buttons *Bin anfäner*
Hallo zusammen, ich passe gerade ein Design per html/css an. (Mein erster versuch).
Bevor ich anfange hier der inhalt der buttons (CSS):
und hier in der html Datei:
Das Problem:
Wie man hier unschwer erkennen kann, ist die Navi nicht ganz in die weite gerückt, auch bei den Buttons stimmt was nicht, ich habe das Design auch mal mit Tabellen angepasst, aber dort haben die Buttons die ganze breite und sind beim overeffekt z.B ganz. Sprich beim html/css wird die navi nicht ganz ausgefüllt, auch die schwarzen punkte nerven diese kommen erst seitdem ich die buttons mit <li>.... verlinkt habe.
bitte um hilfe.
Im Forum oder per Icq: 250514882
mfg
Hallo zusammen, ich passe gerade ein Design per html/css an. (Mein erster versuch).
Bevor ich anfange hier der inhalt der buttons (CSS):
Code:
/*Anfang Navi*/
#navi {
901px;
height:48px;
padding-top:124px;
}
#img1 {
background-image:url(style/navi/01_01.jpg);
height:48px;
width:49px;
float:left;
}
#img2 {
background-image:url(style/navi/startseite.jpg);
height:48px;
width:108px;
float:left;
margin-left:49px;
display:inherit;
}
#img2:hover {
background-image:url(style/navi/startseite_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:49px;
display:inherit;
}
#img3 {
background-image:url(style/navi/03_03.jpg);
height:48px;
width:11px;
float:left;
margin-left:100px;
display:block;
}
#img4 {
background-image:url(style/navi/angebote.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px
}
#img4:hover {
background-image:url(style/navi/angebote_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img5 {
background-image:url(style/navi/05_05.jpg);
height:48px;
width:11px;
float:left;
margin-left:100px;
}
#img6 {
background-image:url(style/navi/leistungen.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img6:hover {
background-image:url(style/navi/leistungen_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img7 {
background-image:url(style/navi/07_07.jpg);
height:48px;
width:11px;
float:left;
margin-left:100px;
}
#img8 {
background-image:url(style/navi/templates.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img8:hover {
background-image:url(style/navi/templates_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img9 {
background-image:url(style/navi/09_09.jpg);
height:48px;
width:11px;
float:left;
margin-left:100px;
}
#img10 {
background-image:url(style/navi/referenzen.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img10:hover {
background-image:url(style/navi/referenzen_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img11 {
background-image:url(style/navi/11_11.jpg);
height:48px;
width:11px;
float:left;
margin-left:100px;
}
#img12 {
background-image:url(style/navi/wir.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img12:hover {
background-image:url(style/navi/wir_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img13 {
background-image:url(style/navi/13_13.jpg);
height:48px;
width:11px;
float:left;
margin-left:100px;
}
#img14 {
background-image:url(style/navi/contact.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img14:hover {
background-image:url(style/navi/contact_over.jpg);
height:48px;
width:108px;
float:left;
margin-left:10px;
}
#img15 {
background-image:url(style/navi/15_15.jpg);
height:48px;
width:29px;
float:left;
margin-left:100px;
/*Ende Navi*/
HTML:
<div id="navi">
<div id="img1">
<li><a href="?site=news"><div id="img2"></div></a></li><!--startseite-->
</li>
<div id="img3">
<li><a href="http://googel.de"><div id="img4"></div></a></li><!--angebote-->
<div id="img5">
<li><a href="http://web.de"><div id="img6"></div></a></li><!--leistungen-->
<div id="img7">
<li><a href="http://gmx.de"><div id="img8"></div></a></li><!--templates-->
<div id="img9">
<li><a href="http://gidf.de"><div id="img10"></div></a></li><!--referenzen-->
<div id="img11">
<li><a href="http://hd-webmedia.de"><div id="img12"></div></a></li><!--wir-->
<div id="img13">
<li><a href="http://sport.de"><div id="img14"></div></a></li><!--contact-->
<div id="img15">
</div><!--img15-->
</div><!--img13-->
</div><!--img11-->
</div><!--img9-->
</div><!--img8-->
</div><!--img7-->
</div><!--img6-->
</div><!--img4-->
</div><!--img2-->
</div><!--navi-->

Wie man hier unschwer erkennen kann, ist die Navi nicht ganz in die weite gerückt, auch bei den Buttons stimmt was nicht, ich habe das Design auch mal mit Tabellen angepasst, aber dort haben die Buttons die ganze breite und sind beim overeffekt z.B ganz. Sprich beim html/css wird die navi nicht ganz ausgefüllt, auch die schwarzen punkte nerven diese kommen erst seitdem ich die buttons mit <li>.... verlinkt habe.
bitte um hilfe.
Im Forum oder per Icq: 250514882
mfg
Zuletzt bearbeitet: