Forum Moderators: open
I have a master table set to 100% width and height then a sub table with align center and valign middle. In old money that put the table in the middle of the page dead on. I have looked at CSS methods with negative margins and so but they need a pre-defined table height. Really I need my tables to grow vertically as content fills them.
If I use HTML 3.2 doctype (or none at all) the tables sit nicely in the middle but the CSS menus don't work, and with HTML 4 the CSS menus work but the central table sits at the top of the screen. (I think HTML 4 does not allow a 100% table height for the master table to fill the browser window, ie. it is not returning the correct value for height).
Of course this is only in IE, FF and Safari work fine without HTML 4 definition.
Is there any way to have a content growing central block with CSS?
Thanks for reading this far :)
But this value is not predetermined with a dynamic frame.
What may work is a script that dynamically sets the center position as a function of frame size, this would work in both directions.
Now if only I knew how to do this. I'll give it a bash but since I started this job with some knowlege of frames and tables and none of CSS I have come a long way :).
Interestingly, and I'll probably get lynched for this, I have used a quirks mode in the parent frame to set the table centering and HTML 4 doctype in the child frame which allows CSS menus to work.
Anyway IE is happy with it and it has helped me make a more permanent move to CSS based design, but what tables can do on their own in old-skool HTML requires CSS and Javascript in new. I know its neater and all but really, I always measure a page by good design with least hacks.
If anyone has any further comments or suggestions they are much appreciated.
The Iframe is centred within a table in quirks mode and the iframe itself uses HTML 4 for CSS. Works on all tested browsers (no not dillo). :)