Forum Moderators: not2easy
Here is how I horizontally center an image:
img.center {
display: block;
margin: 0 auto;
}
But I think I read somewhere it doesn't work in some browsers (probably IE5x but it was late and I forgot where I read it.) Does anyone know?
Also, is that the best way to center it if the width of the container is liquid?
Take care,
Emperor
/* Edit */
Got a question? Check out QuirksMode.org's CSS Centered Layout [quirksmode.org] page.