Web Design Forum HTML CSS JavaScript PHP Graphic Design SEO forum

Full Version: Centering an image on a page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a "splash screen" to my website, and I'm wanting it centered perfectly on the page. Centering it horizontally is obvious, with the <center> tag, but centering it vertically is ending up being quite a challenge to me.

Originally, I set a table with height=100% (making itself stretch to the size of the page), and that was that. However, "height" isn't technically a valid HTML attribute, and the problem is that I'm trying to keep my page within the XHTML standards (which pretty much means you can only use valid attributes).

So, is there any way of doing this with stylesheets or something? Any help would be appreciated.
Reference URL's