Solved

bootstrap table not scrolling

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

746 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

13 Experts available now in Live!

Get 1:1 Help Now