Forum Moderators: open

Message Too Old, No Replies

minmax.js - simulates min-width: CSS2 in IE

Getting more tempting every day

         

TGecho

11:53 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



One of the last things that stands in the way of my completely embracing liquid layouts is IE’s lack of support for the min-width, min-height, etc... I just can't stand seeing my beautiful layouts squished and stretched in such appalling ways.

Now, there's this nifty little (well, kinda little) javascript out there that forces (so to speak) IE to obey when you use one of these properties.

I'm the last person to resort to a hack when a reasonable compromise can be made, but this is getting really annoying.

So, does anyone have a comment on this particular script? To hackish? Not worth it?

RoadRash

11:57 pm on Jul 8, 2003 (gmt 0)

10+ Year Member



As an end user, I will never visit a site twice that trys to change my browser settings. As a webmaster, I know that my users would hate me. :)

TGecho

12:09 am on Jul 9, 2003 (gmt 0)

10+ Year Member



I would totally agree with you, but this doesn't change any browser settings.

All the properties do is say, "This element should never be bigger-smaller than this amount." This javascript simply checks to see if the element has been squished/stretched beyond the amount specified and keeps it from staying squished/stretched (Type in "minmax.js" and look for the demo).

tedster

1:47 am on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since we're likely to be stuck with the under-whelming standards support of IE for quite a while, I think this script may be quite useful -- wherevever you can handle the extra 4+ kb and need it for a sane layout.

It's a nice find.