Ver Mensaje Individual
  #11 (permalink)  
Antiguo 02/09/2013, 07:59
PHPeros
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 7 meses
Puntos: 578
Respuesta: como hacer para que un div se adapte total a la pantalla del navegador

Cita:
Iniciado por jor_0203 Ver Mensaje
realmente yo busque por todos lados
y esta fue la unica forma para que un div se adapte al navegador
si no trata tu y te datas cuenta es solo se adapta si tienes contenido
y cuando esta vacio desaparece

trata de hacerlo
xD no hay mas:

Código:
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
body {
    background-color: #FF9900;
}
#contenedor {
    width: 100%;
    height: 100%;
    background-color: #0099FF;
}
</style>
</head>
 
<body>
<div id="contenedor">
No hay ningun prob!!
</div>
</body>
</html>