I'm trying different styles with CSS and now I want my navbar to stay static while one is looking at the information (Same as on this page). Even when position: fixed works as such, the other elements change their position and when I start downloading the information is super put on the navbar. I would really appreciate if someone can tell me why this is happening and how I can solve it.
body{
font-family: "Montserrat";
background-color: #1a1a1a;
color: #e6e6e6;
}
.navbar-inverse{
padding: 10px 40px 30px 20px;
background-color: #1a1a1a;
border:none;
position: fixed;
}
.navbar-inverse .navbar-nav >li>a{
color: #e6e6e6;
background-color:#33cc33;
width: 40px;
height: 40px;
border-radius:50%;
display: table-cell;
vertical-align: middle;
text-align: center;
font-family: "Montserrat";
}
h1{
text-align: center;
height: 100px;
line-height: 100px
}
img{
width: 300px;
height: 300px;
border-radius: 50%;
display: block;
margin-left: auto;
margin-right: auto;
margin: 50px;
}
.col-lg-6{
height: 400px;
text-align: center;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
<head>
<title>Short Stories</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="shortStories.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
</head>
<body>
<!-- BARRA MENÚ -->
<nav class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#hamburguer" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="HappyChristmas.html" class="navbar-brand">The Octopus <br> and <br> The Sea Horse</a>
</div>
<div class="collapse navbar-collapse" id="hamburguer">
<ul class="nav navbar-nav navbar-right">
<li><a href="shortStories.html">Spnsh Dc</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>Sometime ago there were 2 ...</h1>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<h3>HI´m tryin to make this work,</h3>
</div >
<div class="col-lg-6">
<img src="http://drive.google.com/uc?export=view&id=10hbQmDtsFkjWxTjJH0q3Sa7VascERgSY">
</div>
<div class="col-lg-6">
<img src="http://drive.google.com/uc?export=view&id=10hbQmDtsFkjWxTjJH0q3Sa7VascERgSY">
</div>
<div class="col-lg-6">
<h3>And it´s not working,</h3>
</div >
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script type="text/javascript" src="LandingPageChristmas.js"></script>
</body>