body {
margin: 0px;
padding: 0px;
}
.clear {
clear: both;
}
#menu {
position: absolute;
left: 50%;
bottom: 85.125%;
z-index: 100;
height: 100px;
margin-top: -200px;
width: 300px;
margin-left: -150px;
}
.kroppen {
font-family: serif;
position: absolute;
left: 50%;
width: 865px;
margin-top: 197px;
margin-left: -450px;
padding: 25px;
color: #000;
/*margin-left: -266px;*/
border: 1px solid #ccc;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
850
ul#nav li {
background: #fff;
float: left;
}
ul#nav li a {
display: block;
text-decoration: none;
border-bottom: 1px solid #ccc;
color: #000;
padding: 5px 15px;
}
ul#nav li a:hover {
background: #aaa;
}
ul#nav li ul li {
float: none;
}
ul#nav li ul {
position: absolute;
display: none;
}
ul#nav li:hover ul {
display:block;
}
h1, h2 {
font-family: sans-serif;
font-weight: normal;
}
.text {
text-align: center;
}
#kartan {
width: 850;
height:
}
<div id="menu">
<nav>
<!-- input for the navigation menu -->
<ul id="nav">
<li><a href="hem.html" id="hem">Hem</a></li>
<li>
<a href="#" id="browsers">Browsers</a>
<ul>
<li><a href="chrome.html">Chrome</a></li>
<li><a href="firefox.html">Firefox</a></li>
<li><a href="ie.html">IE</a></li>
<li><a href="opera.html">Opera</a></li>
</ul>
</li>
<li><a href="data.html" id="data"> Data</a></li>
<li><a href="synpunkt.html" id="synpunkt">Synpunkt</a></li>
</ul>
</nav>
</div>
The navigation bar doesnt work in Firefox and IE, but works in Chrome and Safari.