Chodzi o takie menu: http://img237.imageshack.us/my.php?image=1...08190643ge1.png
Próbowałem elementy listy umieścić w divie. Dawałem: margin: 0 auto; text-align: center; margin-left:50% itp. I nic, nie mogę tego w żaden sposób wyśrodkować w poziomie. Czy da się to jakoś wyśrodkować ?
Cały kod w niezmienionej postaci wziętej z tamtej strony wygląda tak:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> ul, ul li { display: block; list-style: none; margin: 0; padding: 0; } ul { float: left; background-color: #fff; padding: 1px 0 1px 1px; border: 1px solid #000; } ul li { float: left; } ul a:link, ul a:visited { text-decoration: none; display: block; font-weight: bold; background: #000 url("tlo.gif") repeat-x center; color: #fff; padding: 10px 20px; border-right: 1px solid #fff; border-right: 1px solid #fff; } ul a:hover { background-color: #800; background-image: url("tlo2.gif"); } </style> </head> <body> <ul> </ul> </body> </html>