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.

CSS Fixed help

Discussion in 'CSS' started by dyn4mik3, Jan 13, 2005.

  1. #1
    I've been trying to get a frames type look for my site but I can't get it to work perfectly in IE. When the page loads (if you scroll before it fully loads) the page breaks. If you wait till it is totally loaded, then it works ok.

    Anyone know why this is?

    The link is http://www.chicforcheap.com/ .
     
    dyn4mik3, Jan 13, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your HTML comments seem to be wrong. Here's what you have:

    <!--[if IE 6]>
    <link rel="stylesheet" href="http://www.clothesdeals.net/wp-content/themes/new_theme/IE6hack.css" type="text/css" />
    <![endif]-->
    Code (markup):
    If you want the stuff in square brackets commented out, the proper comment would be

    <!-- [if IE 6] -->
    Code (markup):
    If you want the stuff between these two comments commented out, it should be

    <!-- [if IE 6]
    <link ...>
    [endif] -->
    
    Code (markup):
    J.D.
     
    J.D., Jan 13, 2005 IP
  3. dyn4mik3

    dyn4mik3 Peon

    Messages:
    126
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Its a hack to get a specific stylesheet to load for IE 6.0
     
    dyn4mik3, Jan 13, 2005 IP
  4. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Interesting, it appears that IE's the only one that misinterprets '>' and closes the comment. It's a neat trick :)

    J.D.
     
    J.D., Jan 13, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Anyway, I figured out what your problem is.

    body {
        height: 100%;
        width: 100%;
        overflow: auto;
    }
    Code (markup):
    IE doesn't handle well overflow set on <body>. I have seen it add two scroll bars (one non-functioning) when overflow was defined for body. If you remove overflow from body and html, IE will not show this weird behavior.

    J.D.
     
    J.D., Jan 13, 2005 IP