Like others, mini-height and minimum width are what you need. This is a css rule and is applied as follows:
#someDivName {
min-height: 100px;
min-width: 50px;
}
Now your div will be 100px by 50px, but if the content inside is larger, it will adapt to change. Like the others that I was told about earlier, the min properties do not work in IE6, but in any case, it adores IE6 more. Even major sites like youtube have stopped supporting it.
source
share