Here is a fiddle with it centered, but the image with position:relative
instead of position:absolute
.
Here is another fiddle with it positioned absolutely, but not centered.
Note that the image has a variable width.
The reason the image must be centered is because I want to fade one out while another is fading in behind it.
Any ideas? Thanks!