Supportnet / Forum / Webseiten/HTML
Wie legt man Höhe und Breite eines Bildes fest?
Frage
Ich würde gerne wissen, wie man die höhe und breite eines bildes festlegt. Am liebsten hätte ich einen html-code für den body-bereich, in dem man die bildquelle, das linkziel, den alt-text und eben höhe und breite angeben kann.
Ich hoffe, dass mir jemand helfen kann!
Antwort 1 von conny77
So:
bzw. (mit Linkziel):
<img src="bild.jpg" width=400 height=300 alt="Text">bzw. (mit Linkziel):
<a href="ziel.html"><img src="bild.jpg" width=400 height=300 alt="Text"></a>Antwort 2 von conny77
Antwort 3 von simoSett1
Und wie bringe ich hier:
<a href="ziel.html"><img src="bild.jpg" width=400 height=300 alt="Text"></a>
Das noch mit rein:
border: solid 3px #000000;
???
<a href="ziel.html"><img src="bild.jpg" width=400 height=300 alt="Text"></a>
Das noch mit rein:
border: solid 3px #000000;
???
Antwort 4 von rfb
du kennst dich demnach mit CSS genausowenig wie mit HTML aus - das solltest du ändern!
was hilft ist u.a. das style-Attribut:
was hilft ist u.a. das style-Attribut:
<a href="ziel.html"><img src="bild.jpg" width=400 height=300 alt="Text" style="border: solid 3px #000;"></a>
