SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    overflow:auto Mac IE5 problem

    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???
    an example of this bug is

    http://www.xs4all.nl/%7Eppk/js/ie5mac/auto.html

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by kelly001
    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.
    Doesn't that apply to Mac users too?

    Here's a question: does the extra scrolling acctually stop people viewing the page? Does no scrolling stop people from acctually being able to view the page?

    You've already answered my retorical questions, so I don't have to, so does that mean that they aren't retorical questions any more?

    As for answering your question, I don't know. Also, if there is a solution, I would expect that you would be able to find it on the site you linked to in your first post... I coudln't find one on a quick look around, and don't have a Mac to test on.

    hth,
    Douglas
    Hello World

  4. #4
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to reaserch on the internet.

    1. Define search term: "hide css" "IE5 mac"
    2. Visit Google, and enter search term above.
    3. Click on a relavant link, for example: "The [IE5 Mac Hack] (Targets only IE 5 Mac). "
    4. Read http://css-discuss.incutio.com/?page=CssHacks
    5. Follow link to http://premonition.co.uk/cssd/ie51-only.html

    You now have a method to target only IE 5 Mac. Congratulations!
    Hello World

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •