Link to home
Create AccountLog in
Avatar of swilschutz
swilschutz

asked on

CSS Centering

Hello,

I have an image gallery that loads an image into a DIV element. I would like the images to be centered in the available space, and when the page first loads, the first image is. However, when you mouseover a thumbnail to move to another image, the new image is not centered. I've looked at the site through firebug and I can't spot the issue. Can anyone see it?

http://www.designmeditations.com/rockcreek/projects.php?pid=7

Thanks.
Avatar of debugitbob
debugitbob
Flag of United States of America image

you have a width of 536px add "margin: 0 auto;" and see if that helps.
ASKER CERTIFIED SOLUTION
Avatar of te-edu
te-edu
Flag of Serbia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account