Solved

bootstrap table not scrolling

Posted on 2014-11-16
3
811 Views
Last Modified: 2014-11-17
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
Comment
Question by:rivkamak
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40447937
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
 

Author Comment

by:rivkamak
ID: 40447951
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40447991
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now