Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/05/2011, 18:29
Avatar de elbuensaint
elbuensaint
 
Fecha de Ingreso: marzo-2009
Ubicación: Chiwas
Mensajes: 178
Antigüedad: 15 años, 1 mes
Puntos: 7
Respuesta: Alto y Ancho al 100% con margen

margen al body en el css:
Código CSS:
Ver original
  1. body {
  2. margin:10px;
  3. }
  4.  
  5. #contenido {
  6. width:100%;
  7. height:100%;
  8. }

solo cambia 10px por el margen que quieres darle... algo así quedaría, ya tu le agregas las demás propiedades

Código 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" lang="en" xml:lang="en">

<head>

<style type="text/css">
<!--



html,body
	{
	height:100%;
	overflow:hidden;
	background-color:#FFFFFF;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:10px;
	margin:10px;
	line-height:16px;
	}
	
a:link, a:visited
	{
	text-decoration:none;
	color:#000000;
	}
	
a:hover
	{
	text-decoration:underline;
	}

#contenido
	{
	width:100%;
        height:100%;
	}
	
	
// -->

</style>

</head>

<body>

<div id="contenido">esto es el contenido</div>

</body>
</html>