J'aimerais savoir si il est possible de dire a une div de prendre la taille d'une autre div, j'ai un menu et j'aimerais lui dire qu'il prenne la taille de mon corps. Actuellement je suis obligé de mettre des tailles fixe mais suivant les pages c'est beaucoup trop grand !!!
Code : Tout sélectionner
/*Site cfdt Interco Sète*/
/*Tout droit réservé*/
/*Page*/
body
{
width:820px;
margin:auto;
margin-top:20px;
margin-bottom:20px;
background-color:#FF6C03;
text-align: center;
}
/*Cadre du Logo*/
#Logo
{
float:left;
width:180px;
height:180px;
background-image:url("Images/CFDT.jpg");
background-repeat:no-repeat;
margin-bottom:20px;
background-color:#FFFFFF;
border:2px solid black;
}
/*Cadre du Titre*/
#Titre
{
margin-left:200px;
margin-bottom:20px;
width:600px;
height:180px;
background-image:url("Images/titre.jpg");
background-repeat:no-repeat;
background-color:#FFFFFF;
vertical-align: middle;
text-align:center;
border:2px solid black;
}
/*Cadre du Menu*/
#Menu
{
float:left;
width:180px;
height:1300px;
text-align:left;
margin-bottom:20px;
background-color:#FFFFFF;
border:2px solid black;
}
/*Gros titre menu*/
#Menu h1
{
text-align:center;
}
/*Titre moyen menu*/
#Menu h3
{
text-align:center;
}
/*Principal*/
#Corps
{
margin-left:200px;
width:600px;
height:1300px;
margin-bottom:20px;
background-color:#FFFFFF;
border:2px solid black;
}
/*Copyright*/
#Copyright
{
font-size:8px;
width:800px;
margin:left;
height:20px;
text-align:center;
background-color:#FFFFFF;
border:2px solid black;
}
.align-left
{
text-align:justify;
margin-left:10px;
margin-right:10px;
}
/*Fin*/Theblackbeast