Hallo Leute,
ich verwende folgendes JS-Menue, welches mit CSS formatiert wird. Jetzt das Problem: was ich auch mache, ich kriege es nicht hin, dass das Menue zentriert auf der Seite angezeigt wird. Was mache ich falsch? Kann mir jemand helfen? Danke!
---
hier das Script:
---
<style type="text/css">
<!--
body {margin: 0px; padding: 0; font: 14px Verdana, sans-serif;}
ul, li {
list-style-type: none;
margin: 0;
padding: 0;
}
div.menu {
position: relative;
width: 800;
top: 10px;
z-index: 3;
}
div.menu li {
float: left;
width: 160px;
}
div.menu a {
margin: 0 2px;
height: 20px;
display: block;
text-align: center;
font-weight: bold;
border: 1px solid gray;
text-decoration: none;
color: #000;
background: #fff;
}
div.menu a:hover {
background: #ccc;
border: 1px solid gray;
}
#smenu1, #smenu2, #smenu3, #smenu4 {
display: none;
float: left;
width: 120px;
font-size: 12px;
}
#smenu1 a, #smenu2 a, #smenu3 a, #smenu4 a {
font-weight: normal;
border-top: 0 none;
}
.site {
position: absolute;
z-index: 1;
top : 70px;
left : 10px;
color: #000;
background-color: #ddd;
padding: 5px;
border: 1px solid gray;
}
.mentions {
position: absolute;
top : 300px;
left : 10px;
color: #000;
background-color: #ddd;
}
a {text-decoration: none;
color: #222;
}
-->
</style></head>
---
Ich danke! |