Fast Loans - Credit Card Consolidation - Best Credit Cards - Personal Loans - Bleach Anime

PDA

View Full Version : CSS Fixed help


dyn4mik3
Jan 13th 2005, 10:31 am
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/ .

J.D.
Jan 13th 2005, 10:41 am
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]-->

If you want the stuff in square brackets commented out, the proper comment would be

<!-- [if IE 6] -->

If you want the stuff between these two comments commented out, it should be

<!-- [if IE 6]
<link ...>
[endif] -->


J.D.

dyn4mik3
Jan 13th 2005, 11:34 am
Its a hack to get a specific stylesheet to load for IE 6.0

J.D.
Jan 13th 2005, 1:17 pm
Its a hack to get a specific stylesheet to load for IE 6.0Interesting, it appears that IE's the only one that misinterprets '>' and closes the comment. It's a neat trick :)

J.D.

J.D.
Jan 14th 2005, 12:31 am
Anyway, I figured out what your problem is.

body {
height: 100%;
width: 100%;
overflow: auto;
}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.