Hi Philip,

It may not be pretty or the most standards compliant code, but it DOES work.
Try the code below.

Regards

Graham Cook
www.uaoz.com


<style>
.setmin{
min-width:100;
width:expression(this.clientWidth < this.currentStyle["min-width"]?
this.currentStyle["min-width"] :"");
}
.setexact{width:100px;}
</style>
</head>

<body>
<input type="button"  value="test1"><br>
<input type="button" class="setexact" value="test1"><br>
<input type="button" class="setmin" value="test1"><br>
<input type="button" class="setmin" value="test1test1test1test1test1test1">

</body>


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to