Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/08/2011, 16:02
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 9 meses
Puntos: 1012
Respuesta: divs para el background

prueba con este script
Cita:
<!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>Page</title>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
position: relative;
}
#contenedor {
width: 1280px; /* cambiar esta medida según el ancho del monitor en el que se pruebe */
height: 80%;
position: absolute;
left: 50%;
top: 0;
margin-left: -640px; /* la mitad del width en negativo */
}
#izquierdo {
position: absolute;
left: 0;
top: 0;
width: 140px;
height: 100%;
background-color: blue;
}

#centro {
position: absolute;
left: 140px;
top: 0;
width: 1000px;
height: 100%;
background-color: yellow;
}


#derecho {
position: absolute;
right: 0;
top: 0;
width: 140px;
height: 100%;
background-color: blue;
}
</style>
</head>
<body>
<div id="contenedor">
<div id="izquierdo"></div>
<div id="centro">Texto</div>
<div id="derecho"></div>
</div>
</body>
</html>