Vertical Scrollbars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sivaranjani
    New Member
    • Dec 2011
    • 16

    Vertical Scrollbars

    How to add vertical Scrollbars to both sides of a Table in html?
  • Palyadav
    New Member
    • Dec 2011
    • 23

    #2
    HTML Syntax

    Code:
     <td id="content-containertable" class="override">
        <div>
        [lots of lines]...<br/>...
        </div>
        </td>
    CSS Syntax

    Code:
    #content-containertable.override{
        width:150px;
        border-color:Silver;
        border-style:Double;
        background-color:Lime;
        }
        #content-containertable.override div{
        height:200px;
        overflow:scroll;
        }
    Try it..It may help u.

    Comment

    • Palyadav
      New Member
      • Dec 2011
      • 23

      #3
      Hello, to get a good answer, it's usually helpful to paste in your source code for us to see. You can paste it right in the question (make sure you formati it) or you can link to a live example on your own server or at www.jsfiddle.net :)

      Comment

      • Palyadav
        New Member
        • Dec 2011
        • 23

        #4
        This is only possible on one side and the scrollbar only appears if the content doesn't fit in the defined height of the table. Maybe there is a plugin for displaying 2 scrollbars but what is the sense of this ?

        Comment

        Working...