Ich hab einen Text und möchte ein Bild darin per css positionieren:
Code: Alles auswählen
<html>
<head>
<style type="text/css">
img
{
float:right;
width:120px;
text-align:center;
margin-top: 100px;
margin-left: 20px;
}
</style>
</head>
<body>
<img src="logocss.gif" width="95" height="84" />
<p>
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</p>
</body>
</html>
Wie erreiche ich das?
Hab mit position:relative und top:xpx schon rumgespielt, aber das haut nicht hin und auch das Bild in ein div stecken funzt nicht so, wie ich es möchte....