I need a little help with style sheets:
If you have one layer nested withing another layer like this :
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
and you add content to the 'child' layer, the 'parent' layer doesnt automatically expand when the child layer expands. It there any way to make it stretch with the 'child' layer?
I appreciate your help.
Your Lord and Master, Foamy
You can use clipping properties of CSS2 but these are not widely supported (read Netscape) yet.
Another option would be to set the Height attribute of your layer to AUTO but again that isn't supported by Netscape.
Something that you might think about is making Parent a scrolling view of Child, kind of like an IFrame. Thomas Brattli has a script to do this at his Site.
Finally your last option is to not use heights at all but only widths.
Wayne Luke - Sitepoint Forums Administrator
Digital Magician Magazine - MetaQuark Creations (Coming Soon)
i was looking for a cross browser solution, so the first two are out... using no heights doesnt work in either - maybe i am doing something wrong - i'll go check again