"Flipkart like navbar"
Bootstrap 3.3.0 Snippet by gabtorrespen

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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"> <button type="button" class="btn btn-info btn-lg glyphicon glyphicon-th" data-toggle="modal" data-target="#myModal"></button> <!-- Modal --> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Historial</h4> </div> <div class="modal-body"> <table class="table table-striped"> <thead> <tr> <th>Fecha de cambio</th> <th>Responsable del cambio</th> <th>Campos editados</th> <th>Descripción</th> </tr> </thead> <tbody> <tr> <td>John</td> <td>Doe</td> <td>john@example.com</td> <td>john@example.com</td> </tr> <tr> <td>Mary</td> <td>Moe</td> <td>mary@example.com</td> <td>john@example.com</td> </tr> <tr> <td>July</td> <td>Dooley</td> <td>july@example.com</td> <td>john@example.com</td> </tr> </tbody> </table> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button> </div> </div> </div> </div> </div>
#flipkart-navbar { background-color: #2874f0; color: #FFFFFF; } .row1{ padding-top: 10px; } .row2 { padding-bottom: 20px; } .flipkart-navbar-input { padding: 11px 16px; border-radius: 2px 0 0 2px; border: 0 none; outline: 0 none; font-size: 15px; } .flipkart-navbar-button { background-color: #ffe11b; border: 1px solid #ffe11b; border-radius: 0 2px 2px 0; color: #565656; padding: 10px 0; height: 43px; cursor: pointer; } .cart-button { background-color: #2469d9; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .23), inset 1px 1px 0 0 hsla(0, 0%, 100%, .2); padding: 10px 0; text-align: center; height: 41px; border-radius: 2px; font-weight: 500; width: 120px; display: inline-block; color: #FFFFFF; text-decoration: none; color: inherit; border: none; outline: none; } .cart-button:hover{ text-decoration: none; color: #fff; cursor: pointer; } .cart-svg { display: inline-block; width: 16px; height: 16px; vertical-align: middle; margin-right: 8px; } .item-number { border-radius: 3px; background-color: rgba(0, 0, 0, .1); height: 20px; padding: 3px 6px; font-weight: 500; display: inline-block; color: #fff; line-height: 12px; margin-left: 10px; } .upper-links { display: inline-block; padding: 0 11px; line-height: 23px; font-family: 'Roboto', sans-serif; letter-spacing: 0; color: inherit; border: none; outline: none; font-size: 12px; } .dropdown { position: relative; display: inline-block; margin-bottom: 0px; } .dropdown:hover { background-color: #fff; } .dropdown:hover .links { color: #000; } .dropdown:hover .dropdown-menu { display: block; } .dropdown .dropdown-menu { position: absolute; top: 100%; display: none; background-color: #fff; color: #333; left: 0px; border: 0; border-radius: 0; box-shadow: 0 4px 8px -3px #555454; margin: 0; padding: 0px; } .links { color: #fff; text-decoration: none; } .links:hover { color: #fff; text-decoration: none; } .profile-links { font-size: 12px; font-family: 'Roboto', sans-serif; border-bottom: 1px solid #e9e9e9; box-sizing: border-box; display: block; padding: 0 11px; line-height: 23px; } .profile-li{ padding-top: 2px; } .largenav { display: none; } .smallnav{ display: block; } .smallsearch{ margin-left: 15px; margin-top: 15px; } .menu{ cursor: pointer; } @media screen and (min-width: 768px) { .largenav { display: block; } .smallnav{ display: none; } .smallsearch{ margin: 0px; } } /*Sidenav*/ .sidenav { height: 100%; width: 0; position: fixed; z-index: 1; top: 0; left: 0; background-color: #fff; overflow-x: hidden; transition: 0.5s; box-shadow: 0 4px 8px -3px #555454; padding-top: 0px; } .sidenav a { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 25px; color: #818181; display: block; transition: 0.3s } .sidenav .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; color: #fff; } @media screen and (max-height: 450px) { .sidenav a {font-size: 18px;} } .sidenav-heading{ font-size: 36px; color: #fff; }
function openNav() { document.getElementById("mySidenav").style.width = "70%"; // document.getElementById("flipkart-navbar").style.width = "50%"; document.body.style.backgroundColor = "rgba(0,0,0,0.4)"; } function closeNav() { document.getElementById("mySidenav").style.width = "0"; document.body.style.backgroundColor = "rgba(0,0,0,0)"; }

Related: See More


Questions / Comments: