<div>
<a href="ziehl1.html"><img src="bild1.jpg" alt="ziehl1" height="50" width="200" border="0" /></a>
<a href="ziehl2.html"><img src="bild2.jpg" alt="ziehl2" height="50" width="200" border="0" /></a>
[...]
<a href="ziehl6.html"><img src="bild6.jpg" alt="ziehl6" height="50" width="200" border="0" /></a>
</div>
div a img {border: 0px; height: 50px; width: 200px;}...
<div id="navi">
...
</div>
...div#navi a img {...}Das ist ja auch LEER bzw, das ist jetzt nur der Layer, da ist noch kein Link (<a>) und auch kein Bild (<img>) drinn.TheTobi89 hat geschrieben:<div id="navi"></div>
<div>
<a href="ziehl1.html">
<img src="bild1.jpg" alt="ziehl1" />
</a>
</div>Die CSS-Eigenschaft "image" gibt es nicht !TheTobi89 hat geschrieben:div#navi a img {
image:url(pic/image.bmp);
border: 0px;
height:50px;
width:200px;
}
TheTobi89 hat geschrieben:@dragonl
war nur ein beispiel mit der bmp weiss auch das die ziemlich groß sind aber danke für den Hinweis.
.div_mit_bild{
background-image:URL(./images/bg_bild.jpg);
background-repeat:no-repeat;
background-position:right;
background-attachment:scroll;
}
/* Quelle: http://www.css4you.de/backgroundproperty.html */<body>
<div id="navi">
<a href="Home.html">Home</a>
<a href="Products.html">Products</a>
<a href="Services.html">Services</a>
<a href="Support.html">Support</a>
<a href="Order.html">Order</a>
<a href="News.html">News</a>
</div>
</body>
#navi {float: left; width: 600px; height: 50px;}
#navi a {
display: inline; background: url('pfad/datei1.jpg') black; float: left;
color: #765; text-decoration: none; height: 50px; width: 100px;
margin: 0px; padding: 0px; border: 0px;
}
<!------ optionale Spielerei ------>
#navi a:link {color: #765; background: url('pfad/datei1.jpg') black;}
#navi a:visited {color: #555; background: url('pfad/datei1.jpg') black;}
#navi a:hover {color: #f00; background: url('pfad/datei2.jpg') white;}
#navi a:active {color: #ff0; background: url('pfad/datei1.jpg') black;}
| Erstellung einer Navigationsleiste bei NVU Forum: Webmaster-Anfänger Autor: Tasty Antworten: 1 |
Definition von Template Forum: HTML, PHP & Co. Autor: Lady-Marion Antworten: 2 |
Definition DSL-Router und DSL-Splitter Forum: Hardware-Hilfe Autor: nesli Antworten: 3 |
Definition: Dual Channel Forum: Hardware-Hilfe Autor: Winnie Pou Antworten: 2 |
definition von wörtern aber online Forum: Off-Topic Hilfe Autor: Mayosoft Antworten: 8 |
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste