Forum Moderators: not2easy
I have a simple div with an image and some text in it. The image should be aligned right, and the text should be on the left at the top (level with the top of the image). In ie(pc), opera and mozilla, this is what happens. But in Mac ie5 the text starts after (below) the image.
Could somebody please explain how to fix this, or a simpler way of getting the result I want? Thanks in advance!
<html>
<head>
<title>Test</title>
<style type="text/css">
.mydiv{position:relative;height:auto;width:360px;clear:both;}
.imageright{display:block;float:right;}
</style>
</head>
<body>
<div class="mydiv">
<img src="photo.jpg" width="100" class="imageright" />
This is some text
</div>
</body>
</html>
Have a look here [macedition.com] for more information.
HTH