Bootstrap snippet and html example. Social navigation box

Bootstrap 3.3.6 snippet "Social navigation box" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.

HTML code

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

<!-- Font awesome -->
<script src="https://use.fontawesome.com/cb2d0db4c2.js"></script>
<div class="container">
    <div class="row">
        <div class="col-md-4 h col-xs-12">
            <ul class="nav nav-tabs nav-justified">
                <li class="border-bottom-active" role="presentation">
                    <a class="home" href="#home">
                        Home
                        <span class="badge">
                            12
                        </span>
                    </a>
                </li>
                <li class="profile" role="presentation">
                    <a href="#profile">
                        Profile
                    </a>
                </li>
                <li class="messages" role="presentation">
                    <a href="#messages">
                        Messages
                        <span class="badge">
                            3
                        </span>
                    </a>
                </li>
            </ul>
            <div class="row ">
                <div class="col-md-12 ">
                    <div class=" row" id="home">
                        <div class="col-md-12 ">
                            <div class="row">
                                <div class="col-md-3 ">
                                    <div class="media-left media-middle">
                                        <a href="#">
                                            <img alt="" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png"/>
                                        </a>
                                    </div>
                                </div>
                                <div class="col-md-9">
                                    <div class="col-md-12 content">
                                        <div class="list-group">
                                            <a class="list-group-item " href="#">
                                                <h4 class="list-group-item-heading">
                                                    Elio Zac
                                                </h4>
                                                <p class="list-group-item-text">
                                                    OMG!
                                                </p>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-3">
                                    <div class="media-left media-middle">
                                        <a href="#">
                                            <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png"/>
                                        </a>
                                    </div>
                                </div>
                                <div class="col-md-9">
                                    <div class="col-md-12 content">
                                        <div class="list-group">
                                            <a class="list-group-item " href="#">
                                                <h4 class="list-group-item-heading">
                                                    Clarence Etwood
                                                </h4>
                                                <p class="list-group-item-text">
                                                    Come here baby.
                                                </p>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-3">
                                    <div class="media-left media-middle">
                                        <a href="#">
                                            <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar3.png"/>
                                        </a>
                                    </div>
                                </div>
                                <div class="col-md-9">
                                    <div class="col-md-12 content">
                                        <div class="list-group">
                                            <a class="list-group-item " href="#">
                                                <h4 class="list-group-item-heading">
                                                    Rick Stark
                                                </h4>
                                                <p class="list-group-item-text">
                                                    Bitch!
                                                </p>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-3">
                                    <div class="media-left media-middle">
                                        <a href="#">
                                            <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar4.png"/>
                                        </a>
                                    </div>
                                </div>
                                <div class="col-md-9">
                                    <div class="col-md-12 content">
                                        <div class="list-group">
                                            <a class="list-group-item " href="#">
                                                <h4 class="list-group-item-heading">
                                                    Frank Ziu!
                                                </h4>
                                                <p class="list-group-item-text">
                                                    Come on!
                                                </p>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <nav aria-label="...">
                            <ul class="pager">
                                <li class="previous disabled">
                                    <a href="#">
                                        <span aria-hidden="true">
                                            ←
                                        </span>
                                        Older
                                    </a>
                                </li>
                                <li class="next">
                                    <a href="#">
                                        Newer
                                        <span aria-hidden="true">
                                            →
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                    <div class="row hidden tab" id="profile">
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-md-12 text-center">
                                    <a href="">
                                        <img class="img-circle" src="https://bootdey.com/img/Content/avatar/avatar4.png"/>
                                        <i aria-hidden="true" class="fa fa-wrench ">
                                        </i>
                                    </a>
                                    <h2>Mikel Row</h2>
                                    <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. "</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row hidden tab" id="messages">
                        <div class="col-md-12 content">
                            <div class="row">
                                <div class="col-md-12 content">
                                    <div class="media">
                                        <div class="media-left media-middle">
                                            <a href="#">
                                                <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar5.png"/>
                                            </a>
                                        </div>
                                        <div class="media-body ">
                                            <h4 class="media-heading dropdown">
                                                Marko Steve
                                                <button class="btn btn-xs btn-default dropdown-toggle pull-right" data-toggle="dropdown" type="button">
                                                    <i class="fa fa-angle-down" id="box-options">
                                                    </i>
                                                </button>
                                                <ul aria-labelledby="box-options" class="dropdown-menu pull-right">
                                                    <li>
                                                        <a href="#">
                                                            <i aria-hidden="true" class="fa fa-trash-o">
                                                            </i>
                                                            Delete
                                                        </a>
                                                    </li>
                                                </ul>
                                            </h4>
                                            <p>
                                                Look around. Stop, look around again!
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 content">
                                    <div class="media ">
                                        <div class="media-left media-middle">
                                            <a href="#">
                                                <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar6.png"/>
                                            </a>
                                        </div>
                                        <div class="media-body">
                                            <h4 class="media-heading dropdown">
                                                Luna Jun
                                                <button aria-expanded="false" aria-haspopup="true" class="btn btn-xs btn-default dropdown-toggle pull-right" data-toggle="dropdown" type="button">
                                                    <i class="fa fa-angle-down" id="box-options">
                                                    </i>
                                                </button>
                                                <ul aria-labelledby="box-options" class="dropdown-menu pull-right">
                                                    <li>
                                                        <a href="#">
                                                            <i aria-hidden="true" class="fa fa-trash-o">
                                                            </i>
                                                            Delete
                                                        </a>
                                                    </li>
                                                </ul>
                                            </h4>
                                            <p>
                                                Wait a moment.
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 content">
                                    <div class="media">
                                        <div class="media-left media-middle">
                                            <a href="#">
                                                <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png"/>
                                            </a>
                                        </div>
                                        <div class="media-body">
                                            <h4 class="media-heading dropdown">
                                                Jean Cyan
                                                <button aria-expanded="false" aria-haspopup="true" class="btn btn-xs btn-default dropdown-toggle pull-right" data-toggle="dropdown" type="button">
                                                    <i class="fa fa-angle-down" id="box-options">
                                                    </i>
                                                </button>
                                                <ul aria-labelledby="box-options" class="dropdown-menu pull-right">
                                                    <li>
                                                        <a href="#">
                                                            <i aria-hidden="true" class="fa fa-trash-o">
                                                            </i>
                                                            Delete
                                                        </a>
                                                    </li>
                                                </ul>
                                            </h4>
                                            <p>
                                                OH my god!
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 content">
                                    <div class="media">
                                        <div class="media-left media-middle">
                                            <a href="#">
                                                <img alt="img/boat.jpg" class="media-object img-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png"/>
                                            </a>
                                        </div>
                                        <div class="media-body">
                                            <h4 class="media-heading dropdown">
                                                Daniel Orland
                                                <button aria-expanded="false" aria-haspopup="true" class="btn btn-xs btn-default dropdown-toggle pull-right" data-toggle="dropdown" type="button">
                                                    <i class="fa fa-angle-down" id="box-options">
                                                    </i>
                                                </button>
                                                <ul aria-labelledby="box-options" class="dropdown-menu pull-right">
                                                    <li>
                                                        <a href="#">
                                                            <i aria-hidden="true" class="fa fa-trash-o">
                                                            </i>
                                                            Delete
                                                        </a>
                                                    </li>
                                                </ul>
                                            </h4>
                                            <p>
                                                Hello?
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-8 ">
        </div>
            </div>
</div>

CSS code

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

.nav li a {
    border: none !important;
}

.border-bottom-active {
    border: none !important;
    border-bottom: 3px solid red !important;
    color: green;
}

.nav-tabs {
    margin-bottom: 30px;
}

.content {
    padding-bottom: 20px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom: 10px;
    /*border: 1px solid gray;
  background-color: ;*/
}

.media-object {
    width: 64px;
    height: 64px;
}

#profile img {
    width: 180px;
    position: relative;
    -webkit-transition: all 1s ease 0s;
    -moz-transition: all 1s ease 0s;
    -ms-transition: all 1s ease 0s;
    -o-transition: all 1s ease 0s;
    transition: all 1s ease 0s;
}

#profile i {
    transition: opacity 0.5s linear;
    -webkit-transition: opacity 0.5s linear;
    opacity: 0.8;
    color: blue;
    font-size: 30px;
    position: absolute;
    top: 30%;
    left: 46%;

}

#profile a .fa-wrench {
    display: none;
}

#profile a:hover .fa-wrench {
    display: inline;
    color: red;
}

#profile a:hover img {
    opacity: 0.5;
}

Javascript/Jquery code

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

$(document).ready(function() {
    var menues = $(".nav li");
    // manejador de click sobre todos los elementos
    menues.click(function() {
        // eliminamos active de todos los elementos
        menues.removeClass("border-bottom-active");
        // activamos el elemento clicado.
        $(this).addClass("border-bottom-active");
    });
});
$(document).ready(function() {
    $(".home").on("click", function() {
        $('#profile').addClass('hidden');
        $('#messages').addClass('hidden');
        $('#home').removeClass('hidden');
    });
    $(".profile").on("click", function() {
        $('#home').addClass('hidden');
        $('#messages').addClass('hidden');
        $('#profile').removeClass('hidden');
    });
    $(".messages").on("click", function() {
        $('#home').addClass('hidden');
        $('#profile').addClass('hidden');
        $('#messages').removeClass('hidden');
    });
}); 

Similar snippets

Bootstrap example and template. Shop categories

Shop categories

Bootstrap example and template. bs4 schedule list

bs4 schedule list

Bootstrap example and template. Pricing options

Pricing options

Bootstrap example and template. service icons

service icons

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. media video players

media video players

Bootstrap example and template. cards with numbers

cards with numbers

Bootstrap example and template. Simple user description

Simple user description

FAQ

How do I use this snippet?

Include Bootstrap 3.3.6, 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.6.

Bootstrap example and template. Social navigation box

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 7.6K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.6

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

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

This code example is based on bootstrap 3.3.6 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