Hello out there!
Ich schaffe es allerdings nicht, den Text nach unten zu verschieben, ohne Angabe des div- oder p-tags.
Oberer Abstand für das umschließende Blockelement, negativer oberer Abstand für das Bild:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>TEST</title>
<style type="text/css">
[code lang=css] img
{
float: left;
margin-top: -20px;
}
p
{
margin-top: 100px;
}
</style>
</head>
<body>
<p><a href="http://example.net/"><img src="http://www.example.com/images/bild1.jpg" alt="" /> zu meiner Fotosammlung</a></p>
</body>
</html>[/code]
<img style="width:48px;
height:40px;
Tu sowas bitte nie wieder. Notiere sämtliche CSS-Angaben zentral ('style'-Element im 'head' oder externe Datei); niemals inline in 'style'-Attributen.
See ya up the road,
Gunnar
--
„Wer Gründe anhört, kommt in Gefahr nachzugeben.“ (Goethe)
„Wer Gründe anhört, kommt in Gefahr nachzugeben.“ (Goethe)