Menüpunkte zentrieren

02/25/2013 18:28 MyKnoppers#1
Hallo,
ich möchte auf meiner Homepage die Menüpunkte vertikal und horizontal zentrieren. aber ich schaff des nicht :(
Mein CSS Code

PHP Code:
ul#list-nav {
    
margin0;
    
padding0;
}

ul#list-nav li{
floatleft;
positionrelative
list-
style-typenone;
font-weightbold;
font-size15px;
text-aligncenter;
vertical-alignmiddle;
}

ul#list-nav li.home{
width125px;
}

ul#list-nav li.doellinger {
width125px;
}

ul#list-nav li.karte {
width125px;
}

ul#list-nav li.termine {
width125px;
}

ul#list-nav li.fotos {
width125px;
}

ul#list-nav li.gaestebuch {
width125px;
}

ul#list-nav li.anfahrt {
width125px;
}

ul#list-nav li.impressum {
width125px;

02/25/2013 18:56 papierkorp#2
Du hast auch bei deinen Listenpunkten ein Float: Left drinnen.
Mach das mal raus dann sollte es gehen =)

lg
02/25/2013 20:33 MyKnoppers#3
das löst leider nicht das problem :(
02/27/2013 08:10 Hiris#4
Link?
02/28/2013 19:59 Önte#5
probier mal so

HTML Code:
#list ul {
list-style-type:none;
float:left;
}
#list li{
float:left;
}