Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/10/2009, 15:59
jchang358
 
Fecha de Ingreso: octubre-2009
Mensajes: 1
Antigüedad: 14 años, 6 meses
Puntos: 0
mover menu desplegable

hola, miren tengo algo como esto:

Código:
#toolbar {
	background: url(fondo aqui) 0 0 repeat-x;
	width: 100%;
	height: 61px;
}
#topnav {
	float: center;
	height: 61px;
	padding-left: 5px;
	margin: 0px;
	z-index: 100;
}
#topnav ul {
	float:center;
	align: center;
	margin: 0;
	padding: 0;
}

#topnav li {
	float: left;
	margin: 0;
	padding: 0px;
	position: relative;
	padding-right: 1px;
	line-height: 16px;
	list-style-type: none;
}

#topnav li a {
	display: block;
	float: left;
	color: #666;
	text-decoration: none;
	padding: 16px 23px 13px;
	font-size: 11px;
}

#topnav li strong {
	color: #ccc;
	font-size: 14px;
	font-family: Arial Narrow, Arial, sans-serif;
}

#topnav li a:hover, #topnav .chosen a:hover, #topnav li:hover a, #topnav li.sfhover a {
	color: #358ACD;
}


#topnav li li {
	width: 170px;
	height: auto;
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid #313131;
}

#topnav li li a, #topnav .chosen li a, #topnav li:hover li a, #topnav li.sfhover li a {
	background: #202020;
	display: block;
	height: 30px;
	line-height: 30px;	
	padding: 0 0 0 22px;
	width: 148px;
	float: none;
	color: #999;
	font-weight: bold;
	font-size: 11px;
	text-decoration: none;
}

#topnav li li a:hover, #topnav .chosen li a:hover {
	background: #1a1a1a;
	color: #ccc;
	text-decoration: none;
}

#topnav li ul {
	background: #1d1d1d;
	clear: both;
	position: absolute;
	height: auto;
	width: 170px;
	top: 61px;
	left: -999em;
	z-index: 100;
	border-right: 1px solid #313131;
	border-left: 1px solid #313131;
}

#topnav li:hover ul, #topnav li.sfhover ul {
	left: auto;
}
y pues eso hace que las listas (ul, li) aparescan como menus desplegables, la cosa es que siempre aparecen pegados a la izquierda y me gustaria ponerlos al centro, saben como hacerlo?

por sierto, intente cambiar algunas cosas de left a center pero no funciona ¬¬

gracias por su tiempo.