...

View Full Version : JQuery... Can't centre the slideshow in my site!



pimpthatfood
09-24-2009, 09:56 PM
Hi there!

How can I centre my jQuery simple slideshow in my website? Is there any code to add?

seco
09-24-2009, 10:21 PM
yeah, use css

pimpthatfood
09-24-2009, 10:39 PM
This is the css i'm using.... what should I add to center the slide show?

#slideshow {
position:relative;
height:350px;
}

#slideshow a{
position:absolute;
top:0;
left:0;
z-index:8;
}

#slideshow a img{
border:none;
}

#slideshow a.active {
z-index:10;
}

#slideshow a.last-active {
z-index:9;
}

seco
09-24-2009, 10:42 PM
#slideshow {
position:relative;
height:350px;
margin:0px auto;
}


you need a width though. if that dont work without a width try

#slideshow {
position:relative;
height:350px;
text-align:center;
}

pimpthatfood
09-25-2009, 01:15 AM
I don't know what's wrong. but it's not working :(. I have tried them both.

check here how it is showing http://www.pimpthatfood.com/

seco
09-25-2009, 02:10 AM
since its set to relative add a left:60px; or whatever number makes it right

pimpthatfood
09-25-2009, 05:09 PM
Thanks very much it worked perfectly.:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum