Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-01-2005, 07:09 PM   PM User | #1
zdislaw
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
zdislaw is an unknown quantity at this point
IE - Floated DIV still affects flow

Hi,
I'll betcha this has already been addressed here. My apologies, but I'm totally in crunch time so I'm posting after only a brief search. If the solution is around already, I'll be happy to find it...just tell me so.

That said...

I have a DIV (orange search form) that lives up at the top of the HTML document, but is relatively positioned to display further down the page. In IE, the page bumps down as if the DIV were still at the top, but the DIV still appears where it should. The DIV displays in the correct place in all my target browsers (IE6, Moz 1, and NS6) but the page behind it is not right in IE.

Here's a link to the page and the css:
http://fiercefamily.com/samples/test.html
http://fiercefamily.com/samples/css/advanced.css

Thanks a million!
zdislaw is offline   Reply With Quote
Old 03-01-2005, 07:16 PM   PM User | #2
zdislaw
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
zdislaw is an unknown quantity at this point
I think I solved it by adding the following hacks to my css to subtract the space being added to the top of #main and then to reposition the search bar in IE only to match Moz.

/* IE Hack */
* html #search {
top: 155px;
}


/* IE Hack */
* html #main {
margin-top: -30px;
}

Is there a better way? I'm thinking I just used the hack to undo something that I did wrong in the first place. Don't want that!

Thanks,
Tim
zdislaw is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:06 AM.


Advertisement
Log in to turn off these ads.