2

I have a table in a div and set my overflow:auto in this container div. I get a horizontal scroll bar, but not a vertical one when there are many rows. Whats the problem?

2
  • 2
    I've given a few ideas below but posting the html (or reasonable fragment) might also be useful. Both scroll bars come up for me with auto when I try. Commented Jan 5, 2012 at 18:24
  • 1
    @CrabBucket - You know, It's really refreshing to see someone ask for clarification on a question without being a jerk about it. It's a tiny thing, but thank you. Commented Jan 5, 2012 at 20:16

1 Answer 1

1

try overflow:scroll instead. Will force the scroll bars to appear - full description .

Alternatively it could be because you haven't set a height to the div (more likely). Try setting one and see if that improves things.

Alternatively has the container div got the height set too big so preventing the vertical scroll.

To be honest I'm trying it and I'm finding it hard to stop the horizontal scroll from appearing (as long it is scroll:auto)

Maybe I've missed (misunderstood) something.

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

Comments

Your Answer

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