Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 955
  • Last Modified:

bootstrap table not scrolling

I am trying to set up my bootstrap table to scroll through the tbody.
I set up a test version here:
Even though my css says

#listprizesSelected tbody {
height: 120px;
overflow-y: auto;
}

it's not cutting my table at the 120px point.
why not?
0
rivkamak
Asked:
rivkamak
  • 2
1 Solution
 
COBOLdinosaurCommented:
overflow:scroll does not apply to the body grouping tags (thead, tbody, tfoot).  so you have to use magic trick to get the effect you are looking for.

This is one way to do a table with fixed headings

Cd&
0
 
rivkamakAuthor Commented:
I was hoping to be able to keep the bootstrap table. Any tricks while still using that?
Or are you telling me that if I take out the tbody, it would work?
0
 
COBOLdinosaurCommented:
I doubt you can use bootstrap. I generally avoid using things as bloated and inefficient as Bootstrap.  When I can do things in just a few minutes by writing my own code.

Cd&
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now