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

Navigationsleiste rechts zentriert

blueangel

Neues Mitglied
Meine css-Datei sieht folgendermassen aus:

HTML:
body {
  font-size: small;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

#navibereich li {
  background-color: #F7FFC3; /* Hintergrundfarbe für die Navigation */
  padding: 4px 0px; /* Innenabstand: oben/unten 4px, li/re 0 */
  border-top: 3px solid #668BCC; /* Rahmenlinie oben */
  border-bottom: 3px solid #668BCC; /* Rahmenlinie unten */
  margin: 0px; /* Keinen Außenabstand */ 
  display: inline; /* Listenelemente nebeneinander */
  list-style-type: none; /* Aufzählungszeichen entfernen */
  text-align: right;
}

a:link {font-weight:bold; color: black; text-decoration:none; }
a:visited: {font-weight:bold; color: grey; text-decoration:none; }
a:focus: {font-weight:bold; color: red; text-decoration:none; }
a:hover {font-weight:bold; color: green; text-decoration:none; }
a:active {font-weight:bold; color: lime; text-decoration:none; }

g:focus { background-color:red; }

g:hover { background-color:silver; }

g:active { background-yellow:red; }

Nun meine Frage:
Der Befehl text-align: right; stimmt doch nicht, oder? Kommt der einfach so wie ich ihn geschrieben habe rein? Möchte Ihn rechts oben drin stehen haben.
Gruss und vorab danke!
 
Zurück
Oben