This is a discussion on "IE6 Float" within the Web Page Design section. This forum, and the thread "IE6 Float are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
IE6 Float
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
IE6 Float
A simple problem has me stumped. I have a 365px-wide text column with a google ad (120x240) in it, and all I want to do is float the ad right so the text flows around it to the left. I have tried every combo of css/html I can think of and IE6 has me whipped.
Simple html:
If I put the google div (span, whatever) inside a paragraph it will float against that paragraph only; it also messes up the indent and line-spacing for the text, so this solution is unacceptable:
All other browsers are fine. Does anyone know the workaround for IE6? Here's a URL with the original html setup: http://www.dhreport.com/articles/a.php?type=arc&spec=75 Last edited by masonbarge; Aug 15th, 2006 at 12:02. |
|
|
|
#2
|
||||
|
||||
|
Re: IE6 Float
I really can't see why that wouldn't be working. No offense (because I would probably take some if I was told this), but if you're changing the CSS, make sure the browser cache is emptied.
I'd prefer a link though. |
|
#3
|
||||
|
||||
|
Re: IE6 Float
I really hope that link wasn't there before I refreshed the page. Try adding display: block; to the google3 div. I know it's already a block element, but sometimes I've found that stupid class fixes every bug known to IE.
Hm, I wish I had IE to play with... Another stupid thing to try would be to make it have a 10 pixel padding instead of a margin. Last edited by Ryan Fait; Aug 15th, 2006 at 12:13. |
|
#4
|
||||
|
||||
|
Re: IE6 Float
Oh wait! I think I found the problem.
|
|
#5
|
||||
|
||||
|
Re: IE6 Float
make sure the floated right layer comes first in the HTML (before the text you want to flow around)
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
|||
|
|||
|
Re: IE6 Float
Rob hit on it, right floats need to come first in the HTML structure. Also if you use IE there is a setting in Internet Options>General>Settings> And click on Every Visit To The Page. THis helps with a lot of IE caching issues.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#7
|
||||
|
||||
|
Re: IE6 Float
You can always use no-cache headers.... they are fairly easy to implement.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#8
|
||||
|
||||
|
Re: IE6 Float
The DIV was positioned properly in the HTML structure. It was after one paragraph and before two. There is no reason it shouldn't have been working properly, other than perhaps IE getting confused about the extra <p> getting opened. Mason's fixed the paragraph problem, but he's taken out the ad now.
|
|
#9
|
||||
|
||||
|
Re: IE6 Float
Thanks for pointing out the <p> typo -- it had no effect on the problem but at least I corrected a coding typo
Everything else I'm well aware of and have tried, except for putting in no cache headers. I tried two methods (meta and regular php header) and they didn't solve this problem (unless I just missed some feed to the browser before the header, but I was careful). Thanks for all the suggestions. I'll go back to it later. I'm thinking maybe the css has to be a frame or table style rather than just a div, but I switched out the data in my db before I could try it. |
![]() |
| Tags |
| ie6, float |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Css Float??? | RZX Developer | Web Page Design | 4 | Aug 13th, 2007 10:37 |
| css float problem | milly | Starting Out | 3 | Jul 9th, 2007 02:51 |
| Float problems | timmytots | Web Page Design | 4 | May 11th, 2007 14:18 |
| Problems with float:left float:right | nvidiajoe | Web Page Design | 8 | Nov 17th, 2006 20:24 |
| float question... | asa_carter | Web Page Design | 4 | Aug 27th, 2006 00:18 |