3

I Have done one example with css overflow property.In this example i got one problem with overflow scroll.The scroll bar was appear, but not working means whenever moves cursor to scroll bar,In this time the scroll bar is not active.I didn't get any idea about this so please help me.And Click bottom edge of scroll bar then it works otherwise not works.

CSS Code :

thead, tbody
 {
    display: block;
}

tbody 
{
width:750px;
height:400px;
overflow-y:scroll;
}

Here i have updated table rows means tbody dynamically with the help of js.

HTML Code :

<div id="table">
           <div id="tablelayout">
                <div id="tmenu">
                 <table id="table"> 
                  <thead>
                  <tr id="trmenu">

                     <th>Table Id</th>
                     <th>Game Type</th>
                     <th>Bet</th>
                     <th>Status</th>
                     <th>Total Players</th>

                   </tr>

                   </thead>
                   <tbody>


                   </tbody>

                </table>
                </div>
        </div>
     </div>
6
  • 2
    Can we have some code please Commented Jan 4, 2014 at 6:27
  • You must post the html too Commented Jan 4, 2014 at 6:29
  • Possible Duplicate --> stackoverflow.com/questions/8232713/… Commented Jan 4, 2014 at 6:35
  • yes i posted code can you check once please? @Mr.Alien Commented Jan 4, 2014 at 6:37
  • With Jquery :- jsfiddle.net/nyCKE/2 Commented Jan 4, 2014 at 7:28

1 Answer 1

1

you can use following code

tbody 
    {
    width:750px;
    height:400px;
    overflow-y:auto;
    }
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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.