Solved

bootstrap table not scrolling

Posted on 2014-11-16
3
840 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Title # Comments Views Activity
Jquery form 9 42
How Close unsubmited attempts 10 46
Echo'd values in dropdowns 6 30
modify change color of text 9 37
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

733 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