1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
| <html>
<head>
<style>
body {
font-family: Verdana, Arial, sans-serif;
height: 100%;
}
#content {
position: fixed;
/* clear: both; */
margin: 30px;
margin-top: 80px;
margin-bottom: 200px;
background-color: red;
}
hr {
margin-left: 30px;
margin-right: 30px;
}
@page {
margin: 80px 1px;
}
#header {
position: fixed;
left: 0px;
right: 0px;
top: 0px;
height: 40px;
background-color: orange;
text-align: center;
margin-top: 30px;
}
#footer {
position: fixed;
left: 0px;
right: 0px;
bottom: 0px;
height: 80px;
background-color: yellow;
}
#footer-gauche {
float: left;
text-align: left;
margin-left: 50px;
background-color: lightblue;
}
#footer-droite {
float: right;
text-align: right;
margin-right: 50px;
background-color: green;
}
#footer-droite #page:after {
content: counter(page, decimal);
}
</style>
</head>
<body>
<div id="header">
Entête
<hr>
</div>
<div id="footer">
<hr>
<div id="footer-gauche">Pied gauche</div>
<div id="footer-droite"><div id="page">Page </div></div>
</div>
<div id="content">
Bla bla bla<br>
Bla bla bla<br>
Bla bla bla<br>
Bla bla bla<br>
Bla bla bla<br>
Bla bla bla<br>
Bla bla bla<br>
Bla bla bla<br>
</div>
</body>
</html> |
Partager