Quote:
Originally posted by aoeuhtns
I always put it in a table, and have the top row have a height of 40%.
Works good, mostly, even on old browsers.
|
I was on this track as well (only I use CSS and set the 'margin' to 40%), but figured there must be some *correct* way of getting true centering... Especially since I want to use it with contents of unknown sizes (at time of design).
With pictures I can use vertical-align and no matter what size the picture is (useful when displaying a random image each time) it will always be centered. No such luck with other objects, I can't get them centered.
I've not looked at it for two days, perhaps tomorrow I'll try again.