1

I'm trying to build a simple jQuery panel slider on a website (two in fact). I'm not much of an expert when it comes to JS/Javascript, and for some reason I can't remove the horizontal scrollbar on my site.

http://www.visioncreativegroup.com.au/demos/dd/

The slider areas are within the Gallery and Feature Project sections.

I've tried adding overflow: hidden to the slideshow(s) wrapping divs, but it doesn't seem to be working.

Any advice?

:)

2
  • 1
    I don't think it's the slideshows that are causing the scrollbar to appear - I'd assume if it was all three images from the slideshow would be displayed horizontally and you could scroll through them, but the slideshow seems to work fine. Commented Aug 10, 2012 at 4:48
  • What do you want? You don't want horizontal scrollbar? or something else? As Michael Peterson mentioned I don't think it's the slideshows that are causing the scrollbar to appear Commented Aug 10, 2012 at 5:02

4 Answers 4

2

Add the CSS propertie "overflow-x: hidden" to "BODY". Not for IE8-

This will work, but will be a hack. There is something wrong with your structure to get that horizontal scroll and unfortunatelly i can't check further at this time.

Sign up to request clarification or add additional context in comments.

Comments

1

In your style.css

Replace this code

body {
    font-family: 'Yanone Kaffeesatz';
    font-size: 21px;
    font-weight: 400;
    overflow-x: hidden;
}

Comments

1

Tim, in your style.css there are two strange widths in classes:

#gallery .panels {
    -moz-transition: margin-left 0.8s ease 0s;
    margin-left: 0;
    overflow: hidden;
    width: 4320px;
}

and

#project .panels {
    overflow: hidden;
    width: 2880px;
}

They are causing the scrollbar.

Remove them, or, if you want to keep them, apply the method everyone else suggesting:

overflow-x:hidden to the body

Comments

0

NOT A HACK! I fixed your problem by applying

.wrap {
  position: relative;
}

Invariably applied as standard in pre-rolled grid systems. Turns out that's what it'll take for your browser to pay attention to the overflow: hidden on that element.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.