<style type="text/css"> * { margin: 0; padding: 0; } body { background-color: #d4e4d7; } #frise { height: 30px; display: block; width: 100%; } #titre { text-align: center; height: 60px; background-color: skyblue; position: relative; } #titre img { position: absolute; top: 10px; left: 25%; } #titre h1, #titre h2 { margin: 0 auto; width: 200px; color: green; } |
#titre h1 { background-color: #d5e897; } #titre h2 { position: relative; top: -10px; left: 50px; } #titre_fixe { padding: 20px; position: fixed; top: 200px; left: 0; width: 80px; text-align: center; background-color: lightgreen; } #galerie { position: absolute; top: 90px; left: 120px; } #galerie img { border: 1px dotted #cccccc; margin: 20px; float: left; width: 200px; height: 230px; } </style> |
<body> <img id="frise" alt="frise de nuages" src="images/nuages30x1100.jpg" name="frise"> <div id="titre"> <img style="width: 40px; height: 41px;" alt="logo arbre" src="images/arbre3.gif"> <h1> LA NATURE </h1> <h2> EN IMAGES </h2> </div> <h2 id="titre_fixe"> Fleurs<br> et<br> plantes </h2> <div id="galerie"> <img style="width: 200px; height: 230px;" alt="cognassier" src="images/cognassier.jpg"> <img style="width: 200px; height: 230px;" alt="douce amère" src="images/douceAmere.jpg"> <img style="width: 200px; height: 230px;" alt="feuille de platane" src="images/feuillePlatane.jpg"> <img style="width: 200px; height: 230px;" alt="fleurs" src="images/fleurs.jpg"> <img style="width: 200px; height: 230px;" alt="fougère" src="images/fougere.jpg"> <img style="width: 200px; height: 230px;" alt="Hélianthème" src="images/Helianthemum.jpg"><br> </div> </body> </html> |