I have a layout where I need tabs at the top, and content to fill the rest of the space. So to make the bottom content div stretch I would need to have:
style="height:100% - 20px;"
Where 20px is the height of my tabs. Obviously that code isn't valid but it illustrates my point. So what I tried next was a table where the td in the fist tr had a set height(20px) and the td in the bottom row had no height set. The table was set to 100% both ways. And this does work, the bottom td stretches to fill. However as soon as I put the code in the project I am working on it doesn't work, and this is because of the doctype the project is using(which I cannot change):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The reason I say it doesn't work is that inside that content td there is a div set to 100% width and height, and unless the td its in has a defined height it doesn't seem to be able to see what 100% is, and simply adjusts the the minimum size it can be according to its content.
It doesn't need to be a table layout, i would prefer div's actually - but either way.
Thanks