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
| <!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<style type="text/css">
* {margin:0;padding:0;}
html,body {height:100%;}
#main {
position:absolute;
top:0;bottom:350px;
width:100%;
background:black;
}
#bloc1 {
height:10%;background:red;
}
#bloc2 {
height:150px;background:yellow;
}
#bloc3 {
height:30%;background:green;
}
#bloc4 {
height:60%;background:blue;
}
#bloc5 {
height:200px;background:purple;
}
</style>
</head>
<body>
<div id="main">
<div id="bloc1">10%</div>
<div id="bloc2">150px</div>
<div id="bloc3">30%</div>
<div id="bloc4">60%</div>
<div id="bloc5">200px</div>
</div>
</body>
</html> |
Partager