ca ne marche pas avec mon code, qui est probablement tout faux...
/* CSS Document */
#colonneG{
width:258px;
height:400px;
border-width:0;
float:left;
position:absolute;
background-color:#F0F;
}
#colonneM{
margin-left:282px;
width:400px;
height:400px;
border-width:0;
float:none;
position:absolute;
background-color:yellow;
}
#colonneD{
margin-left:706px;
height:400px;
width:258px;
border-width:0;
display:block;
position:absolute;
}
#colonneDH{
background-color:red;
height:118px;
width:258px;
border-width:0;
display:block;
position:absolute;
}
#colonneDB{
margin-top:141px;
background-color:green;
height:258px;
width:258px;
border-width:0;
display:block;
position:absolute;
}
#contenuColonneDB{
margin:20px;
background-color:pink;
height:218px;
width:218px;
text-align:justify;
overflow-y:auto;
}
/********************************************** BANDEAUX ***********************************************/
#bandeauH{
height: 27px;
background-color: #000;
border-width:0;
color:white;
width:100%;
display:block;
position:absolute;
}
#bandeauB{
height: 27px;
background-color:#000;
width:100%;
border-width:0;
color:white;
position:absolute;
bottom:0;
display:block;
}
/********************************************** GENERAL ***********************************************/
#cadre{
position:absolute;
width: 970px;
height: 400px;
left: 50%;
top: 50%;
margin-top: -200px; /* moitié de la hauteur */
margin-left: -485px; /* moitié de la largeur */
display:block;
}
#conteneur {
width : 100%;
height : 100%;
position : absolute;
background-color : #fff;
}
body {
font-family : Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
margin : 0;
padding : 0;
}
html, body {
height:100%;
width:100%;
overflow : auto;
}
et ca pour le HTML
<body>
<div id="conteneur">
<div id="cadre">
<div id="colonneG"></div>
<div id="colonneM"></div>
<div id="colonneD">
<div id="colonneDH"></div>
<div id="colonneDB">
<div id="contenuColonneDB">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
<p> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>
</div>
</div>
</div>
</div>
<div id="bandeauH">BANDEAU HAUT</div>
<div id="bandeauB">BANDEAU BAS</div>
</div>
</body>
le site
J'ai 2 problemes :
1. les header et footer qui passent par dessus le contenu quand on resize la page
2. quand on resize horizontalement, et que la barre de scroll horizontale apparait, si on va complètement sur la droite, mes bandeaux noirs ne vont pas jusqu'au bout, malgré un width:100%
j'ai essayé avec un tableau, en mettant mon <div id="cadre"> dans une cellule centrée et ca donne la meme chose sur firefox, et du grand n'importe quoi sur IE
merci pour votre aide !
Modifié par krasseuz (05 Jul 2006 - 18:27)