I'm currently using a jquery slideshow on my homepage with fading images, but I'm having trouble centering them. The images are all different sizes and they're aligning to the left instead of being centered.
Here is the CSS code I've been working with:
#content {
height: 100%;
width: 1000px;
margin: 50px 10px 10px 230px;
top: 10px;
background-color: #fff;
}
.slideshow {
height: 450px;
width: 974px;
align: center;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
margin-top: 10px;
}
.slideshow img {
padding: 0px;
border: none;
background-color: #fff;
}
And here is the HTML code:
div id='content' style="width:974"
div class='container'
div class="slideshow" style="margin-bottom:10px;"
a href="" img src="images/home/1.jpg" align="absmiddle" /></a>
a href="" img src="images/home/2.jpg" align="absmiddle" /></a>
a href="" img src="images/home/3.jpg" align="absmiddle"/></a>
a href="" img src="images/home/4.jpg" align="absmiddle"/></a>
a href="" img src="images/home/5.jpg" align="absmiddle" /></a>
div
The slideshow div is contained within the content div and I want the images to be centered instead of aligned to the left. Any suggestions on how to achieve this?
(I apologize if my code presentation is a bit messy!)
Thank you!