Quote:
Originally Posted by Fysicus
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;