This won't work in any browser I pull it up in. I can't even get the fixed position property to work when following along with tutorials.
Here's one tutorial that I tried among others. https://youtu.be/3I2Uh-D-lzI Everything goes great until I enter in the position: fixed; line.
I just really want a fixed nav that follows down the page as a user scrolls...
CSS:
header {
height: 100px;
width: 100%;
position: fixed;
-webkit-transform: translateZ(0);
top: 0px;
left: 0px;
right: 0px;
}
.container{
margin: 0 auto;
}
HTML:
<header>
<div class="container">
<div class="logo">
<h1>Company Name</h1>
</div>
<nav>
<ul>
<li><a href="#">services</a></li>
<li><a href="#">resources</a></li>
<li><a href="#">about</a></li>
<li><a href="#">contact</a></li>
</ul>
</nav>
</div>
</header>