IE6 Float

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2006, 11:56
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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:
Code: Select all
<div id="left_column"><p>text</p>
<div id="floatright"> google ad verbiage </div>
<p>text</p></div>
With this it won't float.

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:

Code: Select all
<div id="left_column"><p>text</p>
<p> <div id="floatright"> google ad verbiage </div>
text</p></div>
I'll post some css if you want, but it's very basic and I've changed it repeatedly. I've tried floating the paragraphs and column left and right.

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.
Reply With Quote

  #2 (permalink)  
Old Aug 15th, 2006, 12:04
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3 (permalink)  
Old Aug 15th, 2006, 12:10
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Aug 15th, 2006, 12:16
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE6 Float

Oh wait! I think I found the problem.

Code: Select all
...impedes accurate x-rays, cat scans, and ultrasound.<p><div id="google3">
<script type="text/ja...
You didn't close the paragraph tag, you opened another one.
Reply With Quote
  #5 (permalink)  
Old Aug 15th, 2006, 12:35
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: IE6 Float

make sure the floated right layer comes first in the HTML (before the text you want to flow around)
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #6 (permalink)  
Old Aug 15th, 2006, 13:16
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #7 (permalink)  
Old Aug 15th, 2006, 13:20
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: IE6 Float

You can always use no-cache headers.... they are fairly easy to implement.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #8 (permalink)  
Old Aug 15th, 2006, 21:47
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #9 (permalink)  
Old Aug 16th, 2006, 10:13
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
ie6, float

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43