Stuart,

Thanks for your idea… I’m going to try and get Chris’ to work first because I think it’s a cleaner solution. If necessary I’ll fall back to yours though.

 

Chris,

Using clear: left certainly fixes it, but then my forms stack horizontally across the page. Somehow I need a clear: right or clear: both rule in there, however both of these break the page.

Any suggestions?

I don’t even understand how the floats are affecting the left-position of the parent box…

 

Thanks!


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Dawes
Sent: Wednesday, 9 March 2005 1:30 AM
To: Stuart Homfray
Subject: Re[2]: [WSG] Problems with floats in IE

 

Hello Stuart,

 

Hello Tatham,

 

use clear: left;

 

    /* Sidebar Styles */

fieldset.sidebarBlock,

div.sidebarBlock

{

       display: block;

       

       width: 300px;

 

       float: right;

       clear: left; <<---------------------------

       

       margin: 10px 0 0 15px;

}

 

Wednesday, March 9, 2005, 1:21:18 AM, you wrote:

 

 

> A quick answer would be to create a new left-hand side image with an

> extra 25px(?) of the grey gradient background on the left, and then set

> the horizontal background position to -25px(?) on decent browsers, eg.

 

> Firefox, et al.

>   background-position: -25px 0;

 

> IE6

>   background-position: 0 0;

 

> Maybe use the 'underscore hack' (_background-position: 0 0;) to feed the

>   declaration to IE6 (invalidate your CSS) or use MS conditional comments.

 

> It may not be pretty, there may well be a better way, but it works (at

> least on Firefox and IE6!)

 

> cheers,

 

> Stuart

 

> Tatham Oddie wrote:

>> Hey boys/girls,

>> 

>> Having a small problem with a page (of course the problem is only in

>> IE6)… basically the floated fieldsets are causing the top left corner of

>> the white box to fall out of position. Otherwise everything seems fine.

>> 

>> Would a few people who are good at IE hacks / floats mind looking at:

>> 

>> http://members.stansw.asn.au/testdrive/

>> 

>> Thanks in advance! As always, any other comments are appreciated too.

>>  

>> 

>> Thanks,

>> 

>> Tatham Oddie

>> 

>> Fuel Advance

>> 

 

 

 

 

-- 

Best regards,

 Chris                            mailto:[EMAIL PROTECTED]

Reply via email to