> Is there a way to set a minimum width and/or height for a DIV?
Duh: min-height:350px
min-height is not supported by IE, to get around that you could use IEs
broken overflow behaviour by specifying a fixed height "height:350px",
IE will expand that as needed. You then set the height back to "auto"
for proper browsers and hide that rule from IE using your preferred
"hide CSS from IE" method.

Signature
Spartanicus
There are 'min-width', 'max-width', but they don't work at all on IE,
including IE6. They should in most other browsers, except Safari also
breaks when the item with min-width/max-width is positioned. I'm not
sure about min-height and max-height, I've never used them.
See : http://www.svendtofte.com/code/max_width_in_ie/
The solution should work for IE. However, the CSS will not validate,
although that shouldn't cause any usability problem since CSS parser
(other than IE here) will ignore what it doesn't understand.
I didn't use the solution myself since I also needed it to work in
Safari, with a positioned item. I used the window.onresize event
handler in Safari to detect the width and set it dynamically. Since I
wrote it for Safari, I used it in IE as well, with some minor changes.
I can post / send the code as a starting point, but be warned that its
not trivial, and there may be better solutions that don't require
javascript and browser detection. I recall that someone had a CSS only
workaround, might be better to google search on min-width min-height
workarounds and see whats available before opting for javascript
solution. I used it since my users were guaranteed to have javascript
browser and I didn't have to introduce any extra html or css.
Gus Richter - 26 Oct 2005 03:39 GMT
> there may be better solutions that don't require
> javascript and browser detection. I recall that someone had a CSS only
> workaround, might be better to google search on min-width min-height
> workarounds and see whats available before opting for javascript
> solution.
http://www.mezzoblue.com/archives/2004/09/16/minheight_fi/

Signature
Gus
Stephen Poley - 26 Oct 2005 19:18 GMT
>There are 'min-width', 'max-width', but they don't work at all on IE,
>including IE6. They should in most other browsers, except Safari also
[quoted text clipped - 6 lines]
>although that shouldn't cause any usability problem since CSS parser
>(other than IE here) will ignore what it doesn't understand.
You can slightly improve on that by putting the IE pseudo-CSS in a
separate file and including it within an IE conditional comment.

Signature
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/
S - 26 Oct 2005 21:11 GMT
That's pretty much ow I solved the problem.
<style type="text/css" media="screen">
<!--
@import "css/styles.css";
-->
</style>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/styles-ie.css" />
<![endif]-->
This refers MSIE Win to a separate CSS doc. Solves the problem, if only in a
dirty way.
Thanks,
----------------S
On 10/26/05 11:18 AM, in article 7thvl15hc8tpom8g4dv612m170io8fl0ro@4ax.com,
>> There are 'min-width', 'max-width', but they don't work at all on IE,
>> including IE6. They should in most other browsers, except Safari also
[quoted text clipped - 9 lines]
> You can slightly improve on that by putting the IE pseudo-CSS in a
> separate file and including it within an IE conditional comment.