Scrollbar on demand in CSS (overflow property)

Posted by Praveen Prasad on Stack Overflow See other posts from Stack Overflow or by Praveen Prasad
Published on 2010-01-01T23:26:26Z Indexed on 2010/05/24 23:41 UTC
Read the original article Hit count: 198

Filed under:
|

I am creating a <div> with a class someClass

.someClass {
   overflow:scroll
   /*other props*/
}

The problem is that the scrollbars are always visible even when the data is not overflowing. I want the scrollbars to be visible only when data actually overflows.

© Stack Overflow or respective owner

Related posts about html

Related posts about css