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
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Cadres arrondis</title>
<style type="text/css">
.cadre { width: 500px; position: relative; }
.top_left, .top_right, .bottom_left, .bottom_right { height: 50px; width: 50px; background-repeat: no-repeat; position: absolute; }
.top, .bottom {height: 50px; background-color: red; background-repeat:repeat-x}
.left, .right {width: 50px; background-color: blue; background-repeat:repeat-y}
.top { top: 0px; z-index: 1; }
.left { left: 0px; z-index: 8; }
.bottom { bottom: 0px; z-index: 2; }
.right { right: 0px; z-index: 7; }
.top_left { top: 0px; left: 0px; background-image: url("haut_gauche.png"); z-index: 4; }
.top_right { top: 0px; right: 0px; background-image: url("haut_droite.png"); z-index: 5; }
.bottom_left { bottom: 0px; left: 0px; background-image: url("bas_gauche.png"); z-index: 6; }
.bottom_right { bottom: 0px; right: 0px; background-image: url("bas_droite.png"); z-index: 3; }
.content {background-color: green; padding: 60px; z-index: 0; }
</style>
</head>
<body>
<div class="cadre">
<div class="top_left"></div>
<div class="top"></div>
<div class="top_right"></div>
<div class="left"></div>
<div class="content">Ceci est un exemple<br><br></div>
<div class="right"></div>
<div class="bottom_left"></div>
<div class="bottom"></div>
<div class="bottom_right"></div>
</div>
</body>
</html> |
Partager