1

This is my css; I need this to have s scroll or auto overflow for all its content. I can't understand why it is not showing up.

.holder{
    display: table;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    top: 2.5%;
    width: 90%;
    height: 95%;
    background-image:url("images\\tile2.png");
    background-repeat:repeat;
    overflow: scroll;
}
1
  • 1
    please add relating HTML markup to your question. Commented Mar 8, 2013 at 16:45

1 Answer 1

1

Remove display: table; and you will see the scrollbar.

Live Example: http://jsbin.com/aloler/1/edit

Here's your code with display: table; removed: http://jsbin.com/aloler/2/

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

3 Comments

This worked thanks! Does the overflow never work in the table display or is it a combination of bad decisions that led to this?
@VladOtrocol, not sure. display: table; treats the element as a <table>. Searching around it looks like getting scrollbars to work with tables requires some workarounds. I couldn't find an exact reason why these two are not compatible.
@VladOtrocol, there's some good info. here (including workarounds) about tables and overflow here: stackoverflow.com/a/4457290/1085891

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.