Salve a tutti
premetto che non sono una cima con i CSS e come da titolo, ho un menu orizzontale trovato su internet che sto cercando di adattare alle mie esigenze e in particolare vorrei centrarlo nella pagina.
Il CSS è il seguente:
codice:
/* ================================================================ 
This copyright notice must be kept untouched in the stylesheet at 
all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.stunicholls.com/menu/pro_pullup_1.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

.preload1 {background: url(sfum_vert.php?height=40&color1=0xFFCC00&color2=0xFF9900);}
.preload2 {background: url(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00);}
/* top margin for this demo only */
#nav {padding:0px; opacity:0.8; margin-top:30px 0 0; list-style:none; height:40px; position:absolute; z-index:500; font-family:Arial, Helvetica, sans-serif;}
#nav li.top {display:block; float:left; padding-top:5px;}
#nav li a.top_link {display:block; float:left; height:40px; line-height:37px; color:#000; text-decoration:none; font-size:14px; font-weight:bold; padding:0 0 0 12px; cursor:pointer; background:url(sfum_vert.php?height=40&color1=0xFFCC00&color2=0xFF9900);}
#nav li a.top_link span {float:left; border-radius:5px; display:block; padding:0 24px 0 12px; height:40px;background:url(sfum_vert.php?height=40&color1=0xFFCC00&color2=0xFF9900);}
#nav li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:36px; background:url(sfum_vert.php?height=40&color1=0xFFCC00&color2=0xFF9900);}
#nav li a.top_link:hover {color:#000; background:url(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00);}
#nav li a.top_link:hover span {background:url(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00); line-height:37px;}
#nav li a.top_link:hover span.down {background:url(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00); line-height:39px;}

#nav li:hover > a.top_link {color:#fff;background:url(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00);}
#nav li:hover > a.top_link span {url:(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00); line-height:39px;}
#nav li:hover > a.top_link span.down {background:url(sfum_vert.php?height=40&color1=0xFF9900&color2=0xFFCC00); line-height:39px;}

/* Default list styling */

#nav li:hover {position:relative; z-index:200;}

/* keep the 'next' level invisible by placing it off screen. */
#nav ul, 
#nav li:hover ul ul,
#nav li:hover ul li:hover ul ul,
#nav li:hover ul li:hover ul li:hover ul ul,
#nav li:hover ul li:hover ul li:hover ul li:hover ul ul
{position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

#nav li:hover ul
{left:0; bottom:42px; top:auto; background: #fff; padding:3px; border:1px solid #4f8383; white-space:nowrap; width:auto; height:auto; z-index:300;}
* html #nav li:hover ul {width:0;}
#nav li:hover ul li
{display:block; position:relative; float:left; font-weight:normal; background:#fff; clear:left;}
#nav li:hover ul li a
{display:block; font-size:12px; height:20px; line-height:30px; padding:0 5px; color:#000; text-decoration:none;}
#nav li ul li a.fly
{color:#4f8383; font-weight:bold;}
#nav li:hover ul li:hover 
{background:#fff;}
#nav li:hover ul li a:hover {text-decoration:underline;}
#nav li:hover ul li a.fly:hover
{background:#4f8383; color:#fff; text-decoration:none;}
#nav li:hover ul li:hover.fly {background:#4f8383;}

#nav li:hover ul li:hover.fly > a.fly {background:#4f8383; color:#fff; text-decoration:none;} 

#nav li:hover ul li:hover ul,
#nav li:hover ul li:hover ul li:hover ul,
#nav li:hover ul li:hover ul li:hover ul li:hover ul,
#nav li:hover ul li:hover ul li:hover ul li:hover ul li:hover ul
{left:-5px; margin-left:100%; bottom:-4px; top:auto; background: #fff; padding:3px; border:1px solid #4f8383; white-space:nowrap; width:auto; z-index:500; height:auto;}
mentre il menu:
codice:
</head>
<body>

<ul id="nav">
	<li class="top"><span>Home</span>
	<li class="top"><span class="down">Products</span>
		<ul class="sub">
			[*]Cameras
			[*]Lenses
			[*]Flash Guns
			[*]Tripods &amp; Monopods
			[*]Filters
		[/list]
	
	<li class="top"><span class="down">Services</span>
		<ul class="sub">
			[*]Printing
			[*]Photo Framing
			[*]Retouching & Renovation
			[*]Archiving
		[/list]
	
	<li class="top"><span class="down">Contacts</span>
		<ul class="sub">
			[*]Support
			[*]Buying
			[*]Photographers
			[*]Stockist
			[*]General
		[/list]
	
	<li class="top"><span class="down">Shop</span>
		<ul class="sub">
			[*]Online
			[*]Catalogue Sales
			[*]Mail Order
		[/list]
	
	<li class="top"><span>Home</span>[/list]

</body>
</html>
Ho provato di tutto ma non riesco a centrarlo. Dove sta l'inghippo?
Potete darmi un aiuto? Grazie!