Richard wrote;
I would like a dynamic height in css for my center stuff,
I've got a top that 78px high, and a bottom thats 20px high, so I want
the center to be 100% minus 98px, is it possible to do this??
Yes.
xml {height:100%;position:absolute}
top {height:78px;}
center {position:absolute;top:78px;bottom:20px;overflow:a uto;}
bottom {position:absolute;bottom:0;height:20px;}
<xml>
<top/>
<center/>
<bottom/>
</xml>
The other stuff I tried didn't work, I tried to set top:78; and
bottom:20; it only took 1 of them , and only if the position was
absolute.
You tried nothing. bottom:20 means same as "" because no unit. "It" might
also be some browswer that don't support much CSS. Like IE. URLs might
have made clearer what you ahe tried.
I hope you are not trying to do this in WWW, with something but images on
top/bottom elelments, as your text will spill out those containers.
Better idea would be to allow center part to take whatever width, and
push bottom part under window border edge, when it is longer.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>