Difference between revisions of "Team:Bielefeld-CeBiTec/Basic Navbar"

Line 144: Line 144:
 
}
 
}
 
 
 +
        .affix {
 +
top: 0;
 +
width: 100%;
 +
z-index: 9999 !important;
 +
}
 +
 +
.affix + .container-fluid {
 +
padding-top: 70px;
 +
}
 +
 
.logo-img{
 
.logo-img{
 
width: 65px;
 
width: 65px;
Line 152: Line 162:
 
<body>
 
<body>
  
<nav class="navbar navbar-inverse center">
+
<nav class="navbar navbar-inverse center" data-spy="affix" data-offset-top="197">
 
   <div class="container-fluid">
 
   <div class="container-fluid">
 
     <div class="navbar-header">
 
     <div class="navbar-header">

Revision as of 13:57, 26 May 2018

Bootstrap Example