Hallo,
bin langsam am verzweifeln …
Ich möchte meine Navigation per CSS zentrieren…
CSS:
#style
{
position: absolute; width: 600px; left: 50%; margin: 100px 0px 0px -300px; padding: 2px;
font-size: 15px; color: #333;
background: #fff; border: 1px solid #c8c8c8;
}
/* links */
a { background: inherit; color: #003878; text-decoration: none; }
a:hover { background: inherit; color: #003878; text-decoration: underline; }
/* navigation */
#navi ul { font-size: 15px; font-weight: bold; color: #272727; list-style: none; text-align: center; }
#navi li { display: inline; }
#navi li a { float: left; display: block; padding: 4px 12px; background: url(img/navi.jpg) repeat-x; text-decoration: none; border-right: 1px solid #fff; }
#navi li a:hover { background: #fcd1a7; color: #000; }
#navi li a#aktiv { background: #fcd1a7; color: #000; }
Hat vielleicht jemand einen Tipp?
Gruß Andreas