homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Div tage resizes when hyplink rolled over
How do I stop this

 1:09 pm on Feb 16, 2004 (gmt 0)

The pages are written in asp.net. This problem does not occur if I simply view the page on its own. but if I add the page to a frame set.
The web page has a scolling div tag in the centre of the page. When I rollover the menu items on the left hand side this div tag resizes. This only happens if the content has cuased the div tag to show scroll bars.

does anyone have any questions as to how I can stop this from happening.



 4:23 pm on Feb 16, 2004 (gmt 0)

I assume the div tag doesn't just resize on its own... What happens when you hover the anchors? A JavaScript is called?


 6:19 pm on Feb 16, 2004 (gmt 0)

That sounds like an internet explorer rendering bug I've recently dealt with. Do you change the background color for the hover state?



 4:00 pm on Feb 17, 2004 (gmt 0)

It only happens when I roll over the button, and yes I do change the backgorund hover colour


 4:55 pm on Feb 17, 2004 (gmt 0)

Wish I had found a good fix but for me the background-color change wasn't essential and so I just hid it from internet explorer:

#menu>a:hover {background: #abe; }

Sounds like that's probably not an option with your design. The other thing needed to trigger the bug is (I think) something fixed in position. I wasn't using frames but the bug came up when I tried to get ie to emulate

Hope you find an answer and I'll keep playing with it.



 5:00 pm on Feb 17, 2004 (gmt 0)


Thanks for the help at the moment I have decided not to change the background colour and it doesn't look too bad. When I get more time I will play around more.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved