Previous Message
Next Message

IE problem: DIV min-width in a table

Sent by Alex Robinson on 5 November 2004 12:12


>Some designers will substitute an actual width for min-width.  Ie 
>will obey the >actual width.  Yet, that puts a dampler on 
>flexibility.


Alternatively:

....
<td>
<div class="stretcher">Test</div>
</td>
....

..stretcher { min-width: 500px; }
// feed IEs an actual width, but exclude IE-Mac 5
* html .stretcher { /*\*/ width: 500px /* */ }


That way you do get the benefits of min-width combined with IE's bug 
rides in to rescue a deficiency cack-handedness and no need for 
semantic impurities. Honestly in the long run, if you can avoid 
littering your code with meaningless empties you'll be thankful.

Whether or not you feed Mac IE the width or not is up to you 
depending on which behaviour you prefer since it doesn't recognise 
min-width but does honour the width property, er, properly.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: