Difference between revisions of "Template:UFlorida/Menu"

Line 19: Line 19:
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px;  
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px;  
  
 +
#topnavbar {
 +
    margin: 0;
 +
}
 +
#topnavbar.affix {
 +
    position: fixed;
 +
    top: 0;
 +
    width: 100%;
 +
}
 +
 +
#banner {
 +
    background-color: yellow; 
 +
}
  
 
</style>
 
</style>
Line 27: Line 39:
 
<body>
 
<body>
  
 
+
<div class="container" id="banner">
 +
      <div class="row">
 +
          <h1> Your banner </h1>
 +
      </div>
 +
    </div>
  
 
<div style="margin-top:100px"></div>
 
<div style="margin-top:100px"></div>
Line 132: Line 148:
  
 
<script>
 
<script>
 +
$('#topnavbar').affix({
 +
    offset: {
 +
        top: $('#banner').height()
 +
    } 
 +
});
 
</script>
 
</script>
  
 
</html>
 
</html>

Revision as of 20:36, 22 October 2017