Forum Moderators: not2easy

Message Too Old, No Replies

IE Expression's.trying to use fluid layout

width:expression((document.documentElement.clientWidth > 1000)? "1000px" :

         

gms3651

11:44 pm on Sep 18, 2007 (gmt 0)

10+ Year Member



I have a website that looks good when viewing it in resolution 1024 or higher in both IE and FireFox. When I shrink my resolution to 800 x 600 my website still looks good in FireFox. The problem arises when I look at my website in IE while resolution is 800 x 600. It's like my width is still the same. A horizontal scroll appears.

Here is some of my CSS:

#container {
width:expression((document.documentElement.clientWidth > 1000)? "1000px" : "94%");
max-width: 1000px;
margin: 0 auto;
border: 1px #CCCCCC solid;

Thanks for any help

Marshall

11:53 am on Sep 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



gms3651,

Why do you not just make the container width 94% and forget the rest of that code:

#container {
width: 94%;
max-width: 1000px;
margin: 0 auto;
border: 1px #CCCCCC solid;
}

Marshall