...

View Full Version : Quirks or Crash? i hate ie



zro@rtv
07-20-2005, 02:41 AM
http://news.redtv.org/

If i don't have quirks mode:
<!----> above doctype

my page crashes IE and does not render properly, either.

I believe it to be this expression:
width: expression(document.body.offsetWidth - 400);

why does this happen (other than ie sucks)

and are there better hacks to use to make my page more IE compatible??

god i hate ie.

_Aerospace_Eng_
07-20-2005, 02:52 AM
Not sure why it crashes, I don't use expressions in my pages. The question would be what are you trying to do with the expression? Make a fluid middle column? This can be achieved by floating the left column to the left, then the right column to the right, and then the middle column should have left and right margins to clear the left and right columns. Your html would have to in this order

<body>
<div id="left-col"></div>
<div id="right-col"></div>
<div id="mid-col"></div>
</body>

zro@rtv
07-20-2005, 02:55 AM
I had that origionally, but as far as i could understand this disabled my ability to use
<br style="clear:both;" /> in the center column, which i wanted to prevent floating items in the mid column from extending beyond the entry div's

_Aerospace_Eng_
07-20-2005, 02:59 AM
You can't style a br tag, its been discussed in the forums. If your middle column has enough margin on the left and right side float elements shouldn't be move into it.

zro@rtv
07-20-2005, 03:05 AM
oh really? i'll look into that no styling BR,

but my problem with floating left and right columns isnt that they intrude on my mid column, its that I occasionally want to "clear both " within the center column.... follow me? like if i have an entry with a image floated left, i want to clear it before the next entry in the mid cloumn starts, but i dont want that to drop the mid column down below the side columns. am i confused?

_Aerospace_Eng_
07-20-2005, 03:09 AM
The clear would work fine in the middle column, use a div to clear:both; setting the line-height to 0 and putting &nbsp; inside the div. Maybe you can mark up an example of what you are trying to explain. That could help.

zro@rtv
07-20-2005, 03:52 AM
http://news.redtv.org/templates/3cols.html

see how the center column has 2 "ENTRY" div's but, the second one is dropped below the side columns?

Is there a way around this other than absolutely position the side columns?
the beast way i can think to say it is:
I want to clear:both column specific, or within in a div.

_Aerospace_Eng_
07-20-2005, 04:31 AM
That is some strange behavior. I've never seen FF act that way. The clearing div should just extend to clear the image.

zro@rtv
07-20-2005, 04:56 AM
really.... well ****! am i cursed? it's all that trash talkin i've done about ie... ie has infected my mind! (thanks btw, didnt say thanks yet, so THANKS!... and ill thank you again, when we figure it out...)

_Aerospace_Eng_
07-20-2005, 05:37 AM
Okay well you might be able to use this

<script type="text/javascript">
function thewidth(){
if(document.body.clientWidth){
var bodywidth=document.body.clientWidth;
document.getElementById('center').style.width=bodywidth-400+'px';
}
}
onresize=thewidth;
onload=thewidth;
</script> for IE and just use the original layout you had.

Pepe, the bull
07-20-2005, 05:46 AM
I'm not sure how clean of coding this is, but you could do away with the clear:both; divs and just set the height of the individual div that has the pic to the height of the pic.

zro@rtv
07-20-2005, 05:57 AM
thanks, engineer, I'll prolly use that untill i can think of something else.
in honesty, I'd like to use the float for side columns, so i can stick a footer at the bottom, but i cant do that if i absolute the sides. grrr.... dam u, IE!


found info on this if others have questions, 2.
http://www.positioniseverything.net/easyclearing.html
near the bottom: sections:
A Word Of Warning (this is important!)
and
Preventing External Clearing



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum