Ditemi se ho capito bene, vi posto lo scheletro di una pagina che ho tentato di fare con html 5 e il suo relativo css, ditemi se ci sono errori o se qualcosa si poteva fare in modo più efficiente!
INDEX.PHP
codice:
<!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>Alessandro Taverna | Classical Italian Pianist</title>
<link href="templates/alessandrotaverna/css/core.css" rel="stylesheet" type="text/css" />
</head>
<body>
<section id='headerBack'>
<div id='hbUp'>
</div>
<section id='hbDown'>
</section>
</section>
<header>
<div id='logo'>
<a id='logoLeft'>Alessandro</a> <a id='logoRight'>Taverna</a>
</div>
<nav>
Home
Bio
Concerti
Stampa
Repertorio
Contatti
</nav>
</header>
<section id='center'>
</section>
<footer>
2011© Alessandro Taverna Copyright | Web Master Dorigo Andrea</p>
</footer>
</body>
</html>
CORE.CSS
codice:
@charset "UTF-8";
/* CSS Document */
html{
width:100%;
height:100%;
}
body{
margin:0;
width:1000px;
height:100%;
margin-left:auto;
margin-right:auto;
}
#headerBack{
position:absolute;
left:0;
width:100%;
z-index:-1000;
}
#headerBack #hbUp{
background-color:#000;
width:100%;
height:70px;
}
#headerBack #hbDown{
background-color:#DDD;
width:100%;
height:450px;
}
header{
display:table;
}
header #logo{
display:table-cell;
width:300px;
height:100px;
background-color:#272727;
vertical-align:middle;
text-align:center;
}
header #logo #logoLeft{
color:#FFF;
font-size:30px;
}
header #logo #logoRight{
color:#445566;
font-size:30px;
}
header nav{
display:table-cell;
vertical-align:middle;
width:700px;
text-align:right;
}
header nav a{
color:#445566;
text-decoration:none;
margin-right:20px;
font-size:25px;
}
header nav a:hover{
color:#FFF;
}
#center{
width:100%;
min-height:70px;
background-color:#FFF;
margin-top:370px;
}
footer{
position:absolute;
bottom:0;
left:0;
width:100%;
height:50px;
font-size:13px;
background-color:#000;
color:#445566;
text-align:center;
}
footer a{
color:#445566;
}
footer a:hover{
color:#FFF;
}