Sent by Richard Rutter on 24 April 2002 04:04
Eric A. Meyer wrote:
> >Is there a way so that if someone minimizes their browser the div will
quit
> >contracting once it gets to 400 pixels?
>
> Yes.
>
> .main {width: 60%; min-width: 400px;}
>
> To make sure it works in IE/Win, which doesn't support 'min-width',
> you can use the way-cool script Andrew Clover has written
Alternatively you can force the width of the box with a transparent gif set
to 400px wide. Note that you still need to include the
<code>min-width</code> style for better browsers such as Opera 6 and NS6, as
the image (correctly) doesn't force the width of the box with these
browsers.
Still a fudge but maybe preferable to scripting. Afraid I dont; know how
this technique works on a Mac, but feel free to try it here:
http://www.htmlbyexample.com/csstests/minwidth/
cheers!
Richard Rutter
Jalfrezi - www.htmlbyexample.com