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 05-30-2007, 11:51 AM   PM User | #1
dudeshouse
New Coder

 
Join Date: Nov 2006
Location: Bristol, UK
Posts: 85
Thanks: 6
Thanked 6 Times in 6 Posts
dudeshouse is an unknown quantity at this point
Moving menu (in IE, not Firefox)

Hi,
I've scoured the forums and either I'm using the wrong search terms or this problem has arisen before, so here goes...

Please see www.littlefishbristol.com/_index.htm for the offending page. It works fine in Firefox, but I'm obviously in need of some kind of hack for IE.

The page looks near enough how I want it to, but when you resize the window in IE, the menu stays where it was in the previsouly sized screen until you mouseover it... Make sense? This doesn't happen in Firefox, it all just plays happily as it should.

Any suggestions would be greatly appreciated. I've used someone elses menu so wondering if it's some kind of clash between their CSS and mine.

Thanks in advance.

Glenn
__________________
Never argue with an idiot... they'll bring you down to their level and beat you with experience...
dudeshouse is offline   Reply With Quote
Old 06-03-2007, 11:00 PM   PM User | #2
koyama
Senior Coder

 
koyama's Avatar
 
Join Date: Dec 2006
Location: Copenhagen, Denmark
Posts: 1,246
Thanks: 1
Thanked 5 Times in 5 Posts
koyama will become famous soon enough
That's an IE bug (at least IE6 and IE7 affected). Loosely stated, any relative or absolutely positioned element behaves as if it is fixed with respect to the html element unless there is some positioned element between them.

Emil Stenström has reporten the bug here in its simplest form: http://friendlybit.com/css/ie6-resize-bug/
It also contains the fix which is to use body {position: relative}

Although I wouldn't recommend using the method, the bug has been exploited by Stu Nicholls to emulate fixed positioning in IE6: http://www.cssplay.co.uk/layouts/fixed.html
koyama is offline   Reply With Quote
Old 06-13-2007, 07:43 PM   PM User | #3
dudeshouse
New Coder

 
Join Date: Nov 2006
Location: Bristol, UK
Posts: 85
Thanks: 6
Thanked 6 Times in 6 Posts
dudeshouse is an unknown quantity at this point
Perfect, just added position:relative to the body tag and it fixed it straight away. Great tip, thanks.
__________________
Never argue with an idiot... they'll bring you down to their level and beat you with experience...
dudeshouse 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 03:39 PM.


Advertisement
Log in to turn off these ads.