Boa noite pessoal.
Estou me aprofundando mais em HTML e tenho uma dúvida se estou fazendo certo ou nâo: como se faz um layout tableless com porcentagem?
Fiz esse esboço:
<!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>Untitled Document</title>
<link href="t_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="menu"</div>
<div id="conteudo"></div>
<div id="rodape"></div>
</body>
</html>
Css:
/* Reset */
*{margin:0; padding:0;}
#menu{ border:1px solid #F00;
width:100%;
height:100px;
}
#conteudo{ border:1px solid #00F;
width:1000px;
height:600px;
margin:0 auto;
}
#rodape{ border:1px solid #F00;
width:100%;
height:100px;
}
O resultado até que serve para usar, mas o caminho seria esse mesmo?
Desde já agradeço!