I want to have a menu on a fixed position, even when I scroll, etc.
I used "position: absolute;" (also tried :fixed;). Both had the same error.
(I had to set up "left/right/top: 0%", because I had a bit of freespace on each side.)
I wanted to continue with the next div, which is outside of #headercontainer, but I got a problem there. The next div doesn't start "under" the menu, but on the same position.
In short, these 2 divs overlap each other.
I could fix that with margin... but I think I did something wrong! Since the next div part also needed the left/right 0% and also a position alignment or I would have got these free spaces on both sides again.
HTML:
<body>
<div id="headercontainer">
<div id="logo">
<a href="">
<img src="images/logo/logo.png" id="headlogo" />
</a>
<h1>Robert</h1>
</div>
<nav role="navigation" class="navigation">
<ul>
<li> <a href=""> ABOUT ME </a></li>
<li> <a href=""> SKILLS </a></li>
<li> <a href=""> WORK </a></li>
<li> <a href=""> CONTACT </a></li>
</ul>
</nav>
</div>
</body>
CSS:
#headercontainer{
position: absolute;
top: 0%;
right: 0%;
left: 0%;
background: #000;
opacity: 0.7;
color: #fff;
-moz-box-shadow: 2px 2px 15px #000;
-webkit-box-shadow: 2px 2px 15px #000;
box-shadow: 2px 2px 15px #000;
}