Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/08/2010, 19:46
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 15 años
Puntos: 45
Respuesta: alinear horizontal lista en div

Hola trevol

Mira si algo así, ajustándolo a tus medidas, te puede servir:

Código HTML:
<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Menu lista centrada</title>
 <style type="text/css">
* {
	margin: 0; padding: 0;
}
#menu {
	margin: auto;
	width: 900px;
	height: 200px;
	background:  url(menu.JPG) no-repeat;
	border: 1px solid #444;
	text-align: center
}
ul {
	padding: 50px;
}
li {
	list-style: none;
	display: inline; 
	margin: 0 40px 0 40px;
}
</style>

</head>

<body>
<div id="menu">
	<ul>
		<li>home</li>
		<li>home</li>
		<li>home</li>
		<li>home</li>
	</ul>
</div>

</body>
</html> 
Saludos