• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Menü immer noch nicht mittig

aJunkie

Mitglied
[Erledigt]

Hallo,

ich möchte das horizontale Menü mittig bekommen, aber es klappt nicht.
Ich habe überall textalign:center; gesetzt, ohne Wirkung, außer Darstellungsprobleme auf der gesamten Seite.

CSS:
PHP:
#menu {
    width: 100%;
    background: #ffffff;
    color: #ffffff;
    font-family: Verdana;
    font-size: 12px;
    line-height: 22px;
    float:left;
    margin:0 auto;
}
* {
    margin: 0;
    padding: 0;
}
#menu ul {
    float: left;
    width: 130px;
    list-style-type: none;
}
#menu h3 {
    font-size: 12px;
    text-align: center;
    color: #ffffff;
    border: 2px solid #ffffff;
    background: #000000;
}
#menu a {
    text-decoration: none;
    display: block;
    text-align: center;
    background: #000000;
    border: 2px solid #ffffff;
    color: #ffffff;
}
#menu a:hover {
    background-color:#6DBFFB;
    color:#000000;
    border:2px solid #000000;
}
#menu li {
    position: relative;
}
#menu ul ul {
    position: absolute;
    z-index: 2;
    display: none;
}
#menu ul li:hover ul {
    display: block;
}
* html #menu ul li {
    float: left;
    width: 100%;
}
*+ html #menu ul li {
    float: left;
    width: 100%;
}
* html body {
    behavior: url(/csshover3-source.htc);
    font-size: 100%;
}
* html #menu ul li a {
    height: 10%;
}
#menu a.direkt:link {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    border: 2px solid #ffffff;
    background: #000000;
}
#menu a.direkt:hover {
    color: #000000;
    background: #6DBFFB;
    border: 2px solid #000000;
}
EDIT:
Ich habe ein anderes Menü genommen, was einfacher handzuhaben ist. Tut mir leid für die Umstände. ^^
 
Zuletzt bearbeitet:
hi,
trotzdem kleine anmerkung von mir...
dein design der page ist super, aber der background mit den noten macht das ganze wieder kaputt!
mach lieber nen dunklen hintergrund, mit nen paar bildern...
 
Zurück
Oben