Вот недавно делал скелет для шаблончика...
xhtml
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<style type="text/css" media="all">
****@import url("style.css");
</style>
</head>
<body>
<div id="container-main">
****<div id="header">header</div>
****<div id="sidebar">sidebar</div>
****<div id="content">content</div>****
****<div id="footer">footer</div>
</div>
</body>
</html>
css
Код:
* {
****margin: 0;
****padding: 0;
}
html, body {
****width: 100%;
****height: 100%;
}
#container-main {
****width: 100%;
****height: 100%;
}
#header {
****height: 20%;
****background: #EEA6A6;
}
#sidebar {
****width: 200px;
****height: 60%;
****float: left;
****background: #BDDF7A;
}
#content {
****height: 60%;
****margin-left: 200px;
****background: #D3D3D3;
}
#footer {
****height: 10%;
****clear: both;
****background: #ADDDFC;
}