center an image - position absolute

http://kathrynireland.com/kathrynIreland/recent-projects.html

currently images are left aligned. i need to center them on the page and they're not all the same width. i also don't think i can get rid of position:absolute; in the img style - i did this originally and managed to center the images but my fade transition between images got screwed up until i put position:absolute; back.

here's the container class:

/*projects image rotator*/
.moduletableCraigSlide{
margin:-20px 0 0 0;
padding:0;
width:930px;
float:left;}

here's the img style:

 ul.briask-iss li img {display:none;position:absolute;top:0;padding:0px;left:0;border:none;background:none;margin-left:auto; margin-right:auto; }
phillystyle123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LZ1Commented:
If you take out the absolute positioning it breaks in IE 7, but works in FF.
The easiest thing would be to conditionally comment for IE 7.  
0
phillystyle123Author Commented:
it doesn't completely work in ff - the image transition is effected - see how the images don't fade into each other smoothly if the absolute positioning isnt there.
0
remorinaCommented:
Hi phillystyle123,
You will need to remove the position:absolute from the image, however in order not to affect the transition, you can try setting the parent element <li> position to absolute and give it appropriate width and text-align:center.

Remove the position:abolute from the class ul.briask-iss li img and update the ul.briask-iss li class as below



ul.briask-iss li {
background:transparent none repeat scroll 0 0;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:0;
padding:0;
position:absolute;
text-align:center;
width:900px;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phillystyle123Author Commented:
genius remorina - worked perfectly - thanks for the help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.