Hay que ver si entendí bien
poniendo exactamente esto , que en definitiva es tu código
Código HTML:
Ver original<!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"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> body, html {
margin: 0;
padding: 0;
min-height:100%;
min-width:100%;
height: 100%;
}
#linea{
height:30px;
width:100%;
background-color: cyan;
}
El problema que planteas no se produce, el div se redimensiona segun se achique o agrande la ventana, si le agrego mas texto, y achico al máximo la ventana, ni siquiera se produce scroll, sino que el texto del desborda el div por deajo de los 30px.
Supongo que habría que analizar el contenido total del html y de lo que el div contenga
Saludos