4

I have a div with the content set for overflow: auto and height: 300px. There's a table within that div so, when the table has more content than the div is high, the content scrolls.

The problem I'm having is that the scrollbar is sitting on top of my image that I've got on the right of the table.

Is there a way to push the scrollbar beyond the content?

1
  • The div needed some padding on the right... simple, I know. Commented Aug 13, 2010 at 16:19

1 Answer 1

4

If I'm getting your problem right, I'd apply a padding-right to the surrounding div container to get the table away from the edge where the scrollbar will be shown.

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

1 Comment

I was soooo tired yesterday that I couldn't even see the code. It was frustrating me so much that I couldn't wrap my head around the simple solution. This is it... of course. Thank you, zero.

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.