Eai gurizada medonha =p
Seguinte, perguntinha com relação a DIVs:
Eu quero fazer uma DIV que cubra o espaço todo da página, largura e altura em 100%. Depois, quero colocar uma DIV dentro dessa DIV externa, e fazê-la ocupar largura e altura 100% tb, porém com um espaço no top, left, right e bottom, com relação a div externa.
Consegui fazê-lo com esse código:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Any title</title>
</head>
<body style="">
<div id="box"
style="background-color: black;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
padding: 20px;
overflow: hidden;">
<div id="innerDiv"
style="background-color: red;
position: relative;
width: 100%;
height: 100%;">
</div>
</div>
</body>
</html>
Porém, ao abrir em qualquer browser, fica um scroll feio aparecendo... Como tirar o maldito scroll? :roll: