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

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Overflow:auto and scrolling on IE5 for Mac
kelly001




msg:1206197
 1:41 am on Jan 18, 2003 (gmt 0)

When using overflow: auto for an element inside a page, the page nonetheless becomes long enough to contain the entire content of the element, even though part of it is hidden. This causes your page to scroll down as far as where the hidden content goes. This is a known bug in IE5 for Mac and very annoying to me. Has anyone found a workaround?

thanks!

 

mivox




msg:1206198
 1:49 am on Jan 18, 2003 (gmt 0)

Have you tried either overflow: hidden or overflow: scroll (depending on which you want)?

kelly001




msg:1206199
 1:54 am on Jan 18, 2003 (gmt 0)

yes, hidden causes the same thing and scroll hads a horizontal and unneeded scrollbar

kelly001




msg:1206200
 7:30 pm on Jan 18, 2003 (gmt 0)

I was wondering if anyone knew of a way in the body tag to specify based on the browser which scroll setting to apply to the page (default, auto or no)?
If you change the scroll setting in the body to "no" it will prevent the page from scrolling alltogether. This would be fine for IE5 Mac users but I don't want to impose that rule on PC users as it would be a pain not to be able to scroll the page if your screen resolution cut part of the design.

kelly001




msg:1206201
 4:20 pm on Jan 20, 2003 (gmt 0)

F.Y.I if anyone is ever researching this bug.

No one has been able to provide a direct workaround to this problem. What you can do instead is create a different page and use an iframe instead of a div layer. iframes display perfectly in IE5 though they can be fussy and not totally supported in other browsers.

Then on your original page you just add a javascript to automatically redirect any Mac IE5.0 to the other page with the iframe. The javascript could be something like this

<script language="JavaScript">
if(navigator.appVersion.indexOf("MSIE 5.")!=(-1)
&& navigator.appVersion.indexOf("Macintosh")!=(-1)) {
top.location.href = "new-iframe-page.html";
}
</script>

Good luck.

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