Div et CSS : Problème de hauteur ?
Bonjour à vous, je viens de commencer a me plonger dans le css pour les balises div et en effet je dois vous avouer que ce système me plait beaucoup. J'ai réussi a faire marcher 90% du design, cependant, j'ai sur la droite et sur la gauche deux petites images qui doivent s'étirer pour suivre la longueur du site (bg_barregauche & bg_barredroite, que vous verrez dans le code). Mon probleme est que je ne vois meme pas ces images et donc j'ai un gros "trou" dans mon design.
En gros, j'ai ma div pour mon header, deux div intermédiaires et celle du footer. Dans les div intermédiaires, j'ai d'autres div de taille fixe, et j'aimerai que la dernière, que j'ai réglée avec un "height:auto;" s'affiche pour ne plus avoir de trou dans mon design. A noter que si je remplace la valeur "height:auto;" par "height:100%;" elles s'affichent bien, mais passent au dessus du footer, pour allez descendre tres tres bas... (exemple du probleme en images :http://urbangarden.fr/perso/souci.JPG)
En espérant que quelqu'un identifie mon souci au premier coup d'oeil, je vous poste également mon code.
Bonne soirée et merci d'avance à quiconque me donnera un coup de main
:P
index.php:
Code:
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
|
<head>
<title>Urban Garden vous souhaite une bonne visite</title>
<link rel="stylesheet" type="text/css" href="style_div.css">
</head>
<body>
<div id="bandeau"><img src="img/bandeau.png" width="932" height="219"></div>
<div id="contenu">
<div id="zonegauche">
<div id="menuhaut"></div>
<div id="menumur"></div>
<div id="menumurpic"></div>
<div id="menutab"></div>
<div id="menutabpic"></div>
<div id="bg_barregauche"></div>
</div>
<div id="zonedroithaut">
<div id="bout_acceuil"><img src="img/bout_accueil.png" width="125" height="41"></div>
<div id="bout_real"><img src="img/bout_real.png" width="100" height="41"></div>
<div id="bout_bienetre"><img src="img/bout_bienetre.png" width="100" height="41"></div>
<div id="bout_contact"><img src="img/bout_contact.png" width="115" height="41"></div>
<div id="bout_end"></div>
</div>
<div id="zonedroit">
<div id="text">
<div id="pic"></div>
<?php include('www/acceuil.php'); ?>
</div>
<div id="barredroite"></div>
<div id="bg_barredroite"></div>
</div>
<div id="piedpage"></div>
</div>
</body>
</html> |
style_div.css :
Code:
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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url("img/bg.png");
}
div {
margin-left: auto;
margin-right: auto;
text-align:left;
}
div#bandeau {
width:932px;
height:219px;
background-image: url("img/bg2.png");
}
div#contenu { /* Div contenant toute la patie inf. du site */
width:932px;
height:auto;
background-image: url("img/bg2.png");
}
div#piedpage {
width:932px;
height:43px;
background-image: url("img/piedpage.png");
clear:both;
margin-bottom:0;
}
div#menuhaut {
margin-left: 0;
width:216px;
height:136px;
background-image: url("img/menuhaut.png");
}
div#menumur {
margin-left: 0;
width:216px;
height:55px;
background-image: url("img/menumur.png");
}
div#menumurpic {
margin-left: 0;
width:216px;
height:200px;
background-image: url("img/menumurpic.png");
}
div#menutab {
margin-left: 0;
width:216px;
height:50px;
background-image: url("img/menutab.png");
}
div#menutabpic {
margin-left: 0;
width:216px;
height:200px;
background-image: url("img/menutabpic.png");
}
div#bg_barregauche {
margin-left: 0;
width:24px;
height:auto;
background-image: url("img/bg_barregauche.png");
}
div#zonegauche {
float:left;
width:216px;
}
div#zonedroithaut {
float:right;
width:716px;
height:41px;
}
div#zonedroit {
float:right;
width:716px;
hei
}
div#bout_acceuil {
float:left;
width:125px;
height:41px;
}
.bout_acceuilon {
float:left;
width:125px;
height:41px;
background-image:url("img/bout_accueilon.png");
}
.bout_acceuilout {
float:left;
width:125px;
height:41px;
background-image:url("img/bout_accueil.png");
}
div#bout_real {
float:left;
width:100px;
height:41px;
}
div#bout_bienetre {
float:left;
width:100px;
height:41px;
}
div#bout_contact {
float:left;
width:115px;
height:41px;
}
div#bout_end {
float:left;
width:276px;
height:41px;
background-image: url("img/bout_end.png");
}
div#picdte {
float:right;
width:276px;
height:261px;
background-image: url("img/picdte.png");
}
div#barredroite {
float:right;
width:51px;
height:350px;
background-image: url("img/barredroite.png");
}
div#bg_barredroite {
margin-top:350px;
margin-right:0;
width:51px;
height:auto;
background-image: url("img/bg_barredroite.png");
}
div#text {
float:left;
margin-left:10px;
width:654px;
height:auto;
background-color:#282828;
border-left:1px solid #97C000;
border-bottom:1px solid #97C000;
}
div#pic {
float:right;
width:225px;
height:220px;
background-image:url("img/pic.png");
} |