Solved

bootstrap table not scrolling

Posted on 2014-11-16
3
833 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

809 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