"Panels with nav tabs"
Bootstrap 3.2.0 Snippet by krzysztof

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <div class="container"> <div class="page-header"> </div> <div class="row"> <div class="col-md-6"> <div class="panel with-nav-tabs panel-primary"> <div class="panel-heading"> <ul class="nav nav-tabs"> <li class="active"><a href="#tab1primary" data-toggle="tab"><i class="fa fa-file-image-o"></i> Galeria</a></li> <li><a href="#tab2primary" data-toggle="tab"><i class="fa fa-map-marker"></i> Mapa</a></li> <li><a href="#tab3primary" data-toggle="tab"><i class="fa fa-file-excel-o"></i> Załączniki</a></li> </ul> </div> <div class="panel-body"> <div class="tab-content"> <div class="tab-pane fade in active" id="tab1primary"> <img width="100%" height="350" class="img-responsive" src="http://2.bp.blogspot.com/-H6MAoWN-UIE/TuRwLbHRSWI/AAAAAAAABBk/89iiEulVsyg/s400/Free%2BNature%2BPhoto.jpg" /> </div> <div class="tab-pane fade" id="tab2primary"> <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=15+Springfield+Way,+Hythe,+CT21+5SH&aq=t&sll=52.8382,-2.327815&sspn=8.047465,13.666992&ie=UTF8&hq=&hnear=15+Springfield+Way,+Hythe+CT21+5SH,+United+Kingdom&t=m&z=14&ll=51.077429,1.121722&output=embed"></iframe> </div> <div class="tab-pane fade" id="tab3primary"> <div class="col-md-3 col-sm-6 col-xs-6"> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Pliki nie benda wiczne dla innych</h3> <span class="pull-right clickable" data-effect="slideUp"><i class="fa fa-times"></i></span> </div> </div> </div> <div class="upload-drop-zone" id="drop-zone"> Przeciągnij albo kliknij by dodać plik </div> </div> </div> </div> </div> </div> </div> </div> </div>
.panel.with-nav-tabs .panel-heading{ padding: 5px 5px 0 5px; } .panel.with-nav-tabs .nav-tabs{ border-bottom: none; } .panel.with-nav-tabs .nav-justified{ margin-bottom: -1px; } /********************************************************************/ /********************************************************************/ /*** PANEL PRIMARY ***/ .with-nav-tabs.panel-primary .nav-tabs > li > a, .with-nav-tabs.panel-primary .nav-tabs > li > a:hover, .with-nav-tabs.panel-primary .nav-tabs > li > a:focus { color: #fff; } .with-nav-tabs.panel-primary .nav-tabs > .open > a, .with-nav-tabs.panel-primary .nav-tabs > .open > a:hover, .with-nav-tabs.panel-primary .nav-tabs > .open > a:focus, .with-nav-tabs.panel-primary .nav-tabs > li > a:hover, .with-nav-tabs.panel-primary .nav-tabs > li > a:focus { color: #fff; background-color: #3071a9; border-color: transparent; } .with-nav-tabs.panel-primary .nav-tabs > li.active > a, .with-nav-tabs.panel-primary .nav-tabs > li.active > a:hover, .with-nav-tabs.panel-primary .nav-tabs > li.active > a:focus { color: #428bca; background-color: #fff; border-color: #428bca; border-bottom-color: transparent; } .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu { background-color: #428bca; border-color: #3071a9; } .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > li > a { color: #fff; } .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > li > a:hover, .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > li > a:focus { background-color: #3071a9; } .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > .active > a, .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > .active > a:hover, .with-nav-tabs.panel-primary .nav-tabs > li.dropdown .dropdown-menu > .active > a:focus { background-color: #4a9fe9; } .panel-info{ width: 461px; margin: 6px;} .panel-heading span { margin-top: -26px; font-size: 15px; margin-right: -12px; } .panel-heading span { margin-top: -23px; font-size: 14px; margin-right: -34px; } .pull-right { float: right; } .clickable { background: rgba(255, 0, 0, 0.4); display: inline-block; padding: 2px 9px; border-radius: 3px; color: #fff; cursor: pointer;} /* layout.css Style */ .upload-drop-zone { height: 300px; border-width: 2px; margin-bottom: 20px; } /* skin.css Style*/ .upload-drop-zone { color: #ccc; border-style: dashed; border-color: #ccc; line-height: 300px; text-align: center } .upload-drop-zone.drop { color: #222; border-color: #222; }
$(function(){ $('.clickable').on('click',function(){ var effect = $(this).data('effect'); $(this).closest('.panel')[effect](); }) })

Related: See More


Questions / Comments: