Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Centering an image on a page
10-31-2011, 06:22 PM
Post: #1
Centering an image on a page
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.

Smash Repairs Perth | Car Smash Repairs Perth|panel beater perth
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)