quote:
Originally posted by Adeptus
This is where CSS fails and tables, as allergic to their usage as you might be, are a whole lot simpler.
On the contrary, I'm more allergic to this whole css ordeal than tables.
But I wanted to 'simplify' the used tables a bit because the original creator used a _hell_ of a lot nested tables (that is, the program he used, Dreamwaver, has put them there). Guess I came to a point where it can't be 'simplified' anymore...
quote:
Originally posted by Adeptus
I am not even closely following what you are trying to do, but if you are going to vertically center anything, your HTML and BODY both need to be height: 100%.
I'm not vertically centering stuff on a page. I want to vertically center text (other divs) inside a table cell of which the width and height is known, and taking advantage of the margin/padding and overflow attributes (which was otherwise done with a lot more table cells and stuff).
quote:
Originally posted by NanaFreak
quite sure this is what you want:
Code snipped
works with same style and doctype
also i know it is making the divs fake being a table, its what you used in your dodgy hax version, this is just a whole heap neater than that =p
Ah, yeah I got the 'hax' version from a website. Your version seems a lot better, tbh, it looks too good to be correct
I'll test it tonight when I get home....
thanks
EDIT: tested it at work: doesn't work (besides that there was a </div> too much). The output is the same as my first code in this thread; it doesn't vertically align de three texts....