Sent by Adam Kuehn on 17 November 2005 20:08
At 01:43 PM 11/17/2005, David Agnew wrote:
>I'm probably missing something obvious, but...
>
>I'm simply trying to get one or more images to float to the right of
>some text. It works on Firefox and Safari (MacOS), and in Firefox and
>IE6 (Windows) - but I have no luck with Mac IE5.
>
>These pages illustrate the problem:
>http://www.vsi.cape.com/~dagnew/act/
>http://www.vsi.cape.com/~dagnew/abt/beacon.php
>
>I'm using DTD XHTML 1.0 Transitional.
>The most pertinent CSS is:
Actually, the most pertinent CSS you have is mixed in with the markup:
<img src="../img/soccergame.jpg" width="400" alt="" style="float:
right; margin: 0 0 4px 4px" />
Note that there is no width on the float. Mac IE is the only browser
that, by default, gives widthless floats 100% width, in slavish
adherence to the mostly-superceded 2.0 version of the spec. That
means there is no room for the image to be "to the right" of inline
content. To make IE happy, you will need to declare a width on the float.
HTH,
-Adam Kuehn
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/