Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap scrollable tab panel content

I'm wondering if I can make the content in my tab panel scrollable. I have tried a couple things but I don't get it sorted.

<div class="container">
<div class="row">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Title</h3>
            <span class="pull-right">
                <ul class="nav panel-tabs">
                    <li class="active"><a href="#tab1" data-toggle="tab">Tab 1</a></li>
                </ul>
            </span>
        </div>            
        <div class="panel-body">
            <div class="tab-content">
                <div class="tab-pane active" id="test">
                    CONTENT
                </div>
            </div>
        </div>
    </div>
</div>

Fiddle: http://jsfiddle.net/f3p35v76/

like image 937
user3425765 Avatar asked Aug 13 '14 22:08

user3425765


1 Answers

Are you looking for the content to scroll within the pane?

Fiddle: http://jsfiddle.net/uxsr66hp/1/

.tab-pane{
  height:300px;
  overflow-y:scroll;
  width:100%;
}
like image 161
M. Kobus Avatar answered Oct 30 '22 15:10

M. Kobus