1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

IE troubles - overflow issue

Discussion in 'CSS' started by robert_neville, Apr 20, 2005.

  1. #1
    I created a simple template with common tags. It serves as a quick reference guide for my web development efforts. The web page renders great in Firefox, yet becomes a mess in IE. The HTML and CSS code validates on the server. You may view the template at the following link.

    http://neville.f2o.org/IE_overflow.html

    These tests relate to FireFox 1.0 and IE 6.0 on XP. Let me know if you encounter further deviations with your browser or OS platform.

    Overflow Failure
    The pre element has the { overflow: auto; }. Firefox renders the scroll bars while IE extends the entire block beyond the max-width in the #MainContent ID. Why does the overflow override the max-width? In IE, the overflow property causes the entire layout to fail.

    http://neville.f2o.org/IE_overflow.html
     
    robert_neville, Apr 20, 2005 IP
  2. Design Agent

    Design Agent Peon

    Messages:
    3,061
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Scrolls sideways on safari (osx).
     
    Design Agent, Apr 20, 2005 IP
  3. mikmik

    mikmik Guest

    Messages:
    356
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    IE doesn't recognize max-width. I also suspect it doesn't apply the overflow to <pre> element. I imagine you have to apply the overflow attribute to a containing div in IE, or else give your <pre> a defined width - %, em, px, etc.

    Yes, it looks like you should be applying the overflow attribute to the parent of the <pre> element.

    It is talked about here:
    http://www.w3.org/TR/CSS21/visufx.html
     
    mikmik, Apr 21, 2005 IP
  4. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yfs1, Apr 21, 2005 IP
  5. mikmik

    mikmik Guest

    Messages:
    356
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks muchly. I always seem to get one link wrong when I present a finished site to clients :eek:
     
    mikmik, Apr 21, 2005 IP