Ver Mensaje Individual
  #6 (permalink)  
Antiguo 01/05/2008, 10:56
Cenfer
 
Fecha de Ingreso: febrero-2007
Mensajes: 85
Antigüedad: 17 años, 1 mes
Puntos: 0
Re: Definir tamaño en css

El css lo tengo así ahora:

/*Inicio del CSS*/
/*CSS Cuerpo*/
@charset "utf-8";
body
{
background: url(../images/bg-body.gif) #f6efe9;
margin: 0px; padding: 0px
}
#cuerpo {
width: 800px;
margin-left: auto;
margin-right: auto;
}
/*CSS Cuerpo*/
/*Fin del CSS*/

y el html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<link rel="stylesheet" href="estilos/principal.css" type="text/css"/>
</head>
<body>
<div id="cuerpo">
<div id="header">
<div id="menu">
<div id="espacio">
<div id="contenido">
</div>
</div>
</body>
</html>

Saludos y gracias.

Última edición por Cenfer; 01/05/2008 a las 11:55