Schau mal stand auch auf der Seite:
HTML-Code:/* Give the menu bar a width and set the margins to "auto" * so that the browser does the centering. */ ul.MenuBarHorizontal { width: 32.2em; margin: auto; }
hallo
schlag mich damit rum
http://labs.adobe.com/technologies/s...BarSample.html
genauer: Centering the Menu Items in a Menu Bar
wenn ich eine testsite anlege und dann ein spry menu einbaueCode:<link href="../../widgets/menubar/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- /* Center the text within all menu item links. */ ul.MenuBarHorizontal a { text-align: center; } /* Set the the alignment back to left for any * menu item links that are in a sub menu. */ ul.MenuBarHorizontal ul a { text-align: left; } --> </style>
seh ich kein "ul.MenuBarHorizontal ul a " sondern nur "ul.MenuBarHorizontal ul a.nochwas"
offensichtlich brauch ich das um text im submenu mittig auszurichten
wie kann ich denn ohne das - also nur mit den vorgegebenen "ul's" text mittig setzen ?
Schau mal stand auch auf der Seite:
HTML-Code:/* Give the menu bar a width and set the margins to "auto" * so that the browser does the centering. */ ul.MenuBarHorizontal { width: 32.2em; margin: auto; }
danke zulujaner,
ich hab da wohl etwas gepennt
mittig geht
menu items sind mittig ausgerichtet
wie kann ich dann submenu items linksbündig ausrichten - also nur mit den vorgegebenen "ul's" ?
hab das so probiert - funktioniert auch
neue Klasse erstellt
submenu aktiviert und dort text-align = left gesetzt
(manchmal sieht man den Wald vor lauter Bäumen nicht - grrrr)
Geändert von heiderdeify (16.06.2009 um 12:42 Uhr)
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)