Thanks very much for that James, I was trying to avoid using the conditional comments - I don't normally use them, but it seems the only way in this case. I've put that in now, so thanks very much for your help.
Cheers Paul ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of James Ducker Sent: Saturday, January 31, 2009 1:12 PM To: [email protected] Subject: Re: [WSG] Clearing a row with floated list <li> I fixed it in IE7, though that caused the problem that was occuring in IE7 to occur in Firefox. If you don't mind a conditional, problem solved! See it at: http://studioj.net.au/wsg/pcl.html - James On Fri, Jan 30, 2009 at 10:42 PM, Paul Collins <[email protected]<mailto:[email protected]>> wrote: Thanks for your replies everyone. I'm not explaining the problem well, so I've created a demo page: http://paulcollinslondon.com/temporary/test.html If you take a look at it in IE7 and Firefox, you should be able to see the difference. The first <li> is taller than the second one, causing the fourth one to float up higher than the third, (in IE only). If I clear the left, it works in Firefox, but in IE the fourth one still floats up. I know I've solved this a while back and I've seen solutions on the internet, but for the life of me I cannot find them again! Any ideas would be most appreciated. Cheers Paul -----Original Message----- From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Gunlaug Sørtun Sent: Thursday, January 29, 2009 5:54 PM To: [email protected]<mailto:[email protected]> Subject: Re: [WSG] Clearing a row with floated list <li> Paul Collins wrote: > I can add a class of "clear" to every third list item, which is great, > but I'm still having troubles in getting them to behave in IE. > Has anyone got a solution, or seen on online lately?! Didn't check for the actual case, but it's usually safer to declare 'clear: left' than 'clear: both' when trying to clear left-floats in IE. IE has quite a few 'clear' related bugs, and I think this is one of them. regards Georg -- http://www.gunlaug.no ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected]<mailto:[email protected]> ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected]<mailto:[email protected]> ******************************************************************* -- James Ducker Web Developer http://www.studioj.net.au ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] *******************************************************************
