Hey Leute. Ich beschäftige mich seit einem Jahr intensiver mit HTML. CSS war immer nur so Nebensache. Nun habe ich jedoch eine Page erstellt, jedoch bin ich auf ein Problem gestoßen. Ich möchte gerne durch einen <img class"..."> bestimmen das manche Bilder einen Orangen Rand haben. Nun habe ich das dann auch laut Buch und Internet alles so gemacht. Ich habe das Design aus Bildern zusammengesetzt und möchte jetzt einfach ein Bild in den Text mit einem orangen Rand defninieren. Und was macht das Ding. NICHTS. Nicht mal wenn ich <img border=2> einstelle kriege ich keinen Rand. Ich habe hier mal die Quelltexte und hoffe mir kann jemand helfen. Bin echt am Verzweifeln.
CSS:
body { background-image: url("bg/bg.gif"); font-family: Arial; }
/*Formatierung der Links*/
a:link { text-decoration:none; color:none; }
a:visited { text-decoration:none; color:none ; }
a:hover { text-decoration:none; background-color: none; }
a:active { text-decoration:none; background-color:none; }
a:focus { text-decoration:none; background-color:none; }
/*Kein blauer Rand um die Bilder*/
img {border-width:0;}
.rand {border-color: #feb25d; border-width:3;}
/*Formatierung Tabelle = Tabelle1:Überschrift Tabelle2:Textfeld*/
HTML:
<img class="rand" src="thumbs/rul.jpg">
table.tabelle1{ position: absolute; top: 250px; left: 277px; text-align:center; font-size: 30;}
table.tabelle2 { position: absolute; top: 400px; left: 230px; text-align:justify;}
/*Tabellen zentriert*/
div.tdc
{text-align: center;}
/*Layout*/
#header
{position: absolute;}
#header1
{position: absolute; top: 164;}
#startseite {position: absolute; top: 266px; }
#ueberuns {position: absolute; top: 300px; }
#ferienwohnung {position: absolute; top: 334px; }
#tierf {position: absolute; top: 367px; }
#angebote {position: absolute; top: 425px; }
#galerie {position: absolute; top: 458px; }
#kontakt {position: absolute; top: 493px; }
#anreise {position: absolute; top: 523px; }
#links {position: absolute; top: 558px; }
#impressum {position: absolute; top: 586px; }
CSS:
body { background-image: url("bg/bg.gif"); font-family: Arial; }
/*Formatierung der Links*/
a:link { text-decoration:none; color:none; }
a:visited { text-decoration:none; color:none ; }
a:hover { text-decoration:none; background-color: none; }
a:active { text-decoration:none; background-color:none; }
a:focus { text-decoration:none; background-color:none; }
/*Kein blauer Rand um die Bilder*/
img {border-width:0;}
.rand {border-color: #feb25d; border-width:3;}
/*Formatierung Tabelle = Tabelle1:Überschrift Tabelle2:Textfeld*/
HTML:
<img class="rand" src="thumbs/rul.jpg">
table.tabelle1{ position: absolute; top: 250px; left: 277px; text-align:center; font-size: 30;}
table.tabelle2 { position: absolute; top: 400px; left: 230px; text-align:justify;}
/*Tabellen zentriert*/
div.tdc
{text-align: center;}
/*Layout*/
#header
{position: absolute;}
#header1
{position: absolute; top: 164;}
#startseite {position: absolute; top: 266px; }
#ueberuns {position: absolute; top: 300px; }
#ferienwohnung {position: absolute; top: 334px; }
#tierf {position: absolute; top: 367px; }
#angebote {position: absolute; top: 425px; }
#galerie {position: absolute; top: 458px; }
#kontakt {position: absolute; top: 493px; }
#anreise {position: absolute; top: 523px; }
#links {position: absolute; top: 558px; }
#impressum {position: absolute; top: 586px; }