J'expose mon problème directement:
J'ai un div central, et des div dedans qui sont en float:left, histoire de les mettre l'un à coté de l'autre...
Mais je n'arrive pas à centrer mon div central à cause des float :s
Voici mon code:
PHP
#menu_central{
height: 300px;
width: 100%;
text-align:center;
}
#menu_animateur{
background: url(../images//layout/menu_central.jpg);
background-repeat:none;
height: 300px;
width: 131px;
background-position: 0 0;
position: relative;
display:block;
margin-left:auto;
margin-right:auto;
float:left;
}
#menu_formateur{
background: url(../images//layout/menu_central.jpg);
background-repeat:none;
height: 300px;
width: 131px;
background-position: 135px 0;
position: relative;
display:block;
margin-left:auto;
margin-right:auto;
float:left;
}
#menu_parent{
background: url(../images//layout/menu_central.jpg);
background-repeat:none;
height: 300px;
width: 130px;
background-position: 262px 0;
position: relative;
display:block;
margin-left:auto;
margin-right:auto;
float:left;
}
help