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>
<title>newlayout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body{
margin:0;
padding:0;
text-align:center;
background-color:#727272;
}
div#container{
width:743px;
margin:0 auto;
text-align:left;
}
div#top {
background-image:url(img/top.gif);
background-repeat:no-repeat;
width:743px;
height:35px;
}
div#head {
background-image:url(img/header.gif);
background-repeat:no-repeat;
width:743px;
height:109px;
}
div#nav{
background-image:url(img/navbar.gif);
background-repeat:repeat-y;
float:right;
width:160px;
text-align:center;
}
div#cont{
background-image:url(img/content.gif);
background-repeat:repeat-y;
width:544px;
margin-right:160px;
padding:38px;
}
div#foot{
background-image:url(img/footer.gif);
background-repeat:no-repeat;
width:704px;
height:40px;
clear:right;
text-align:center;
padding: 10px;
}
</style>
</head>
<body>
<div id="container">
<div id="top"></div>
<div id="head"></div>
<div id="nav">NavBar
NavBar
NavBar
NavBar</div>
<div id="cont">Salve a tutti ragazzi,
riempio questo spazio
per fare delle prove.
Baci,
Fred</div>
<div id="foot">Footer</div>
</div>
</body>
</html>
Il DIV "nav" risulta spostato di un 40 pixels a destra.. :S e non arriva sino al footer..
sapreste indicarmi l'errore?
http://travtool.com/css/newlayout.html