On 18 Nov 2005, at 6:12 am, David Agnew wrote:

>> At 01:43 PM 11/17/2005, David Agnew wrote:
>>> [....]
>>>
>>> These pages illustrate the problem:
>>> http://www.vsi.cape.com/~dagnew/act/
>>> http://www.vsi.cape.com/~dagnew/abt/beacon.php
>>> [....]
>>
>> 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.
>> [...]
>
> [...]

Actually, Adam is right, and wrong....

IE Mac indeed needs a width declaration when using the float property, 
in accordance with the CSS 2.0 rec. But , when an **image** is floated, 
you don't  need  to declare the width, the intrinsic width of the image 
will do perfectly fine. Your original mark-up was correct in this case 
(except that, it would be better to add a class to you image tag, and 
declare your rules in your stylesheet instead of using inline styles).

That doesn't fix your problem, though. The 'non-floating' images are 
the result of a real bug in IE Mac [1]. It is caused by the 
{clear:right} rule for div#contentbody. Delete that rule, and your page 
ought to display correctly.
Now, I suspect you page is not complete, based on the comments in the 
source code. If you need to float something before that #contentbody, 
then you'll need to use another clearing technique. For a few ideas, 
see [2].

[1] <http://www.l-c-n.com/IE5tests/float2misc/#fm002>
more tid-bits over there about IE Mac.
[2] <http://www.positioniseverything.net/> has a good article on 
'easyclearing'.

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com/>

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to