Forum Moderators: not2easy

Message Too Old, No Replies

IE and Respecting Values

min-width question...

         

Gendari

11:52 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



#main
{
background-color: yellow;
display: block;
position: absolute;
top: 153px;
left: 183px;
right: 33px;
padding: 12px 0 0 0;
height: 61%;
z-index: 196;
min-width: 270px;
}

In Firefox, it correctly stops being 100% when it reaches 270px. At that point the element doesn't resize.

How do I get IE to respect that value, instead of it sticking with 100% no matter what?

photon

12:44 pm on Oct 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sadly, IE does not support min/max values in CSS. Here's [webmasterworld.com] one work around using JavaScript. You might also take a look at IE7 [webmasterworld.com], which "patches" all manner of IE shortcomings.

Gendari

1:54 am on Oct 30, 2004 (gmt 0)

10+ Year Member



Thank you so much! Only disadvantage is the slow loading times it can create when dynamically updating.