0

i set up a fiddle , and was hoping there was a way to get this to scroll , but haven't been able to figure it out

http://jsfiddle.net/sq181h3h/3/

I have tried both of these , but nothing working

#league_chat {
    overflow-y:scroll;
}
#league_chat {
    overflow-y:auto;
}
MShack
  • 642
  • 1
  • 14
  • 33
  • If you want to just divide the info and the headers for the scroller, here: http://jsfiddle.net/sq181h3h/6/ – BragDeal Jul 10 '15 at 17:18

2 Answers2

2

If you want to apply the scroll to the tbody directly then I believe this has been answered previously:

HTML table with 100% width, with vertical scroll inside tbody

Community
  • 1
  • 1
0

I think its because it's a table. You should give your table a wrapping div then set your height, width, and overflow properties on it.

See this Fiddle.

zgood
  • 12,181
  • 2
  • 25
  • 26
  • any possible way to just get the tbody to scroll ? – MShack Jul 10 '15 at 17:12
  • Ya sure. In your case you can just set the `` to `position:fixed;`. See this updated [Fiddle](http://jsfiddle.net/sq181h3h/7/). I gave it a few other styles to render better – zgood Jul 10 '15 at 17:22
  • I could not find a way with CSS to do this , so i used jQuery to wrap the tbody with a div class and set that to height and overflow – MShack Jul 10 '15 at 17:27