View Single Post
  #2 (permalink)  
Old Sep 21st, 2007, 09:48
robbied72 robbied72 is offline
Up'n'Coming Member
Join Date: Sep 2007
Location: Wales, UK
Age: 35
Posts: 88
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Position image in the dead center of my webpage

Quote:
Originally Posted by Fysicus View Post
I need to get my image centered in the middle of my webpage, so when a browser using a resolution greater then 800x600 is used the imaged is cleanly centered in the middle of the screen.

I've been playing around with my CSS-settings, but so far no luck.

.oneColElsCtr #container {
width: 46em;
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
text-align: left; /* this overrides the text-align: center on the body element. */
}


Can anyone tell me what I need to add to get my image to center properly?
have you tried margin-left:auto; and margin-right:auto;
Reply With Quote