Un esempio semplice
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>xhtml 1.0</title>
<style type="text/css">
* {
padding : 0;
margin : 0;
}
html, body {
height : 100%;
}
body {
background : #cca;
}
#footer {
position : absolute;
bottom : 0;
height : 40px;
width : 100%;
background : #fff;
}
#footer p {
border : 5px #666 solid;
height : 30px;
}
</style>
</head>
<body>
<div id="footer">
Footer</p>
</div>
</body>
</html>
Keywords: footer basso posizione posizionato fissato allineato allineamento adiacente attaccato bordo fondo browser