Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2009, 08:56 PM   PM User | #1
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
JQuery... Can't centre the slideshow in my site!

Hi there!

How can I centre my jQuery simple slideshow in my website? Is there any code to add?
pimpthatfood is offline   Reply With Quote
Old 09-24-2009, 09:21 PM   PM User | #2
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
yeah, use css
seco is offline   Reply With Quote
Old 09-24-2009, 09:39 PM   PM User | #3
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
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;
}
pimpthatfood is offline   Reply With Quote
Old 09-24-2009, 09:42 PM   PM User | #4
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
#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;
}
seco is offline   Reply With Quote
Old 09-25-2009, 12:15 AM   PM User | #5
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
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/
pimpthatfood is offline   Reply With Quote
Old 09-25-2009, 01:10 AM   PM User | #6
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
since its set to relative add a left:60px; or whatever number makes it right
seco is offline   Reply With Quote
Users who have thanked seco for this post:
pimpthatfood (09-25-2009)
Old 09-25-2009, 04:09 PM   PM User | #7
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
Thanks very much it worked perfectly.
pimpthatfood is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:51 PM.


Advertisement
Log in to turn off these ads.