Forum Moderators: not2easy

Message Too Old, No Replies

simple text / image alignment not working in Mac IE 5

         

mr_benn

1:25 pm on Feb 10, 2004 (gmt 0)

10+ Year Member



Hi,

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>

BlobFisk

2:53 pm on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could be one of IE5 on the Mac's well known float bugs:

Have a look here [macedition.com] for more information.

HTH