Bootstrap snippet and html example. Select Content Type

Bootstrap 3.3.4 snippet "Select Content Type" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: menu,content,documents,files

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.4 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container bootstrap snippets bootdey">
    <div class="row">
        <div class="col-xs-12 col-sm-4 br-a br-light bg-light pv20 ph30">
            <h4 class="micro-header">Select Content Type</h4>
            <div class="row text-center" id="content-type">
        
              <div class="col-xs-4 col-sm-6">
                <a class="holder-style p15 mb20 holder-active" href="#dock-image">
                  <span class="fa fa-picture-o holder-icon"></span>
                  <br> Image
                </a>
              </div>
              <div class="col-xs-4 col-sm-6">
                <a class="holder-style p15 mb20" href="#dock-panel">
                  <span class="fa fa-text-height holder-icon"></span>
                  <br> Panel
                </a>
              </div>
              <div class="col-xs-4 col-sm-6">
                <a class="holder-style p15 mb20" href="#dock-table">
                  <span class="fa fa-pencil-square-o holder-icon"></span>
                  <br> Table
                </a>
              </div>
              <div class="col-xs-4 col-sm-6">
                <a class="holder-style p15 mb20" href="#dock-form">
                  <span class="fa fa-map-marker holder-icon"></span>
                  <br> Form
                </a>
              </div>
              <div class="col-xs-4 col-sm-6">
                <a class="holder-style p15 mb20" href="#dock-text">
                  <span class="fa fa-film holder-icon"></span>
                  <br> Text
                </a>
              </div>
              <div class="col-xs-4 col-sm-6">
                <a class="holder-style p15 mb20" href="#dock-video">
                  <span class="fa fa-spinner holder-icon"></span>
                  <br> Video
                </a>
              </div>
            </div>
            <button id="dock-push" type="button" class="btn btn-success fs14 fw600 pv15 btn-block">Send to Admin Dock</button>
        </div>
        <div class="col-xs-12 col-sm-8 br-a br-light bg-light dark">
            <div id="dock-content" class="ph60">
                <div id="dock-image" class="content active-content">
                    <div class="dock-item" data-title="Tiger Image">
                      <img class="img-responsive center-block" src="https://www.bootdey.com/image/500x330/00BFFF/000000">
                    </div>
                 </div>
                 <div id="dock-panel" class="content">
                 PANEL 
                 </div>
                 <div id="dock-table" class="content">
                 TABLE CONTENT
                 </div>
                 <div id="dock-form" class="content">
                 COOL FORM
                 </div>
                 <div id="dock-text" class="content">
                 AMAZING TEXT
                 </div>
                 <div id="dock-video" class="content">
                 AWESOME VIDEO
                 </div>
            </div>
        </div>
  </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.4 to keep the design, spacing, and responsiveness consistent.

body{
    margin-top:20px;
    background:#e7e7e7;
}

.bg-light {
  background-color: #FAFAFA;
  color: #666;
}

.br-light {
  border-color: #e7e7e7 !important;
}

.br-a {
  border: 1px solid #eeeeee !important;
}

.ph30 {
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.ph60 {
  padding: 60px !important;
}

.pv20 {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.bg-light.dark {
  background-color: #F2F2F2;
}

.micro-header {
  color: #999;
  text-align: center;
  font-weight: 400;
  margin-bottom: 20px;
}

h4, .h4 {
  font-size: 15px;
}

.holder-style.holder-active {
  background-color: #FFF;
  border:2px dashed #70ca63;
}

.mb20 {
  margin-bottom: 20px !important;
}

.p15 {
  padding: 15px !important;
}

.holder-style {
  display: block;
  padding: 9px 16px;
  color: #AAA;
  background-color: #f1f1f1;
  border: 2px dashed #d9d9d9;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.holder-style.holder-active .holder-icon {
  color: #70ca63;
}

.holder-style .holder-icon {
  color: #AAA;
  font-size: 30px;
  padding-bottom: 10px;
}
a, a:hover, a:focus{
    text-decoration:none !important;    
}

Javascript/Jquery code

Lightweight JS to power any interactions this snippet needs. Drop it under your scripts (after Bootstrap 3.3.4) to mirror the live demo.

$(function(){
    $('.content').hide();
    $('.active-content').show();
    $('.holder-style').click(function(e){
        e.preventDefault();
        $('.holder-style').removeClass('holder-active');
        $('.content').hide();
        
        $($(this).attr('href')).show();
        $(this).addClass('holder-active'); 
    });
}); 

Similar snippets

Bootstrap example and template. div ribbons

div ribbons

Bootstrap example and template. Home menu

Home menu

Bootstrap example and template. home menu blockquote box jquery2dotnet

home menu blockquote box jquery2dotnet

Bootstrap example and template. check file manager

check file manager

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Box gallery images

Box gallery images

Bootstrap example and template. Social post

Social post

Bootstrap example and template. Responsive Parallax Navbar

Responsive Parallax Navbar

FAQ

How do I use this snippet?

Include Bootstrap 3.3.4, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.4.

Bootstrap example and template. Select Content Type

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 10.3K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.4

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.4 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working