"Profile 2"
Bootstrap 3.1.0 Snippet by urmisaha

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ----------> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad" > <div class="panel panel-info"> <div class="panel-body"> <div class="row text-center"> <div class="col-md-4"> <img alt="User Pic" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=100" class="img-circle"> </div> <div class=" col-md-8"><h3>Sheena Kristin A.Eschor</h3></div> </div> <br> <div class="row text-center"> <table class="table table-bordered table-striped table-hover"> <tbody> <tr> <td>Date of Birth:</td> <td>01/24/1988</td> </tr> <tr> <td>Gender</td> <td>Male</td> </tr> <tr> <td>Email</td> <td><a href="mailto:info@support.com">info@support.com</a></td> </tr> <td>Phone Number</td> <td> <ul class="phone"> <li>123-4567-890(Landline)</li> <li>555-4567-890(Mobile)</li> </ul> </td> </tr> </tbody> </table> </div> </div> <div class="panel-footer"> <a href="edit.html" data-original-title="Edit" data-toggle="tooltip" type="button" class="btn btn-sm btn-warning"><i class="glyphicon glyphicon-edit"></i></a> </div> </div> </div> </div> </div>
.user-row { margin-bottom: 14px; } .user-row:last-child { margin-bottom: 0; } .dropdown-user { margin: 13px 0; padding: 5px; height: 100%; } .dropdown-user:hover { cursor: pointer; } .table-user-information > tbody > tr { border-top: 1px solid rgb(221, 221, 221); } .table-user-information > tbody > tr:first-child { border-top: 0; } .table-user-information > tbody > tr > td { border-top: 0; } .phone { padding: 0; } .phone li { display: block; } .toppad{ margin-top:20px; }
$(document).ready(function() { var panels = $('.user-infos'); var panelsButton = $('.dropdown-user'); panels.hide(); //Click dropdown panelsButton.click(function() { //get data-for attribute var dataFor = $(this).attr('data-for'); var idFor = $(dataFor); //current button var currentButton = $(this); idFor.slideToggle(400, function() { //Completed slidetoggle if(idFor.is(':visible')) { currentButton.html('<i class="glyphicon glyphicon-chevron-up text-muted"></i>'); } else { currentButton.html('<i class="glyphicon glyphicon-chevron-down text-muted"></i>'); } }) }); $('[data-toggle="tooltip"]').tooltip(); $('button').click(function(e) { e.preventDefault(); alert("This is a demo.\n :-)"); }); });

Related: See More


Questions / Comments: