Adam Kuehn wrote:
cappellano wrote:
Is it possible to set an initial height for a DIV? I want to use"
height: auto" for this DIV overflow, but as it contains a bg image, I
need to start it with an especific height to show the image. Is it
possible?
It is certainly possible to set a minimum height. Just specify
min-height: [length]. You can separately set the height to auto. This
works in most modern browsers.
Naturally, however, this does not work in IE/Win. However, IE will
(incorrectly) expand a DIV to fit its contents, regardless of what you
specify as the height. So, if you don't mind using hacks (see the
Wiki), you can set the min-height, and then feed a height value only
to IE/Win. That should make IE do what you want, too.
But then Ie will set a fixed height for this div. If the layer is
containing some text that will be resized over this fixed height, this
text will jump off the box... Right ?
Guillaume.
______________________________________________________________________
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/