Fixed centered nav the container div needed to be with the nav tags

pull/340/head
Peter Goodhall 2019-08-29 22:02:57 +01:00
rodzic 8d7698b3db
commit b12e6ebb7e
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -22,7 +22,8 @@
</head>
<body>
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light main-nav">
<div class="container">
<a class="navbar-brand" href="<?php echo site_url(); ?>">Cloudlog</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
@ -126,4 +127,5 @@
</form>
<?php } ?>
</div>
</div>
</nav>

Wyświetl plik

@ -1,3 +1,6 @@
.main-nav .container {
margin-top: 0px;
}
.container {
margin-top: 55px;