css - how to fit large wider and heigher table for all screen at bootstrap 3 -


i've faced problem bootstrap table. basically, table dynamic , @ first columns hidden. some/all hidden column showed dynamically based on user's action. when, many/all columns shown, scroll-bar come @ bottom of browser window. but, want scroll-bar come table instead of page/browser window. mean, happened don't want:

i want bootstrap .table-responsive feature larger screen when table's width cross visible width of browser:

also want vertical scroll-bar when it'll cross definite height. make this, i've applied css this:

.table-custom {     max-height: 150px;     overflow: auto; } 

which not working. , horizontal scroll-bar(when table's width cross parent's width), can't apply fixed width i've concern large , small screen. so, can appear scroll-bars(both vertical , horizontal) when dynamic table cross width , height of it's parent div?

my fiddle

i think need apply overflow: scroll; containing element of table, have .table-responsive.

.table-responsive {      max-width: 150px;      overflow: scroll; } 

fiddle: http://jsfiddle.net/vwrva9l6/11/


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -