RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | webmastering
Difficultés pour centrer mon site en CSS
byothe, le ven. 23 févr. 2007 à 13:40:03
Bonjour à tous,

Ca fait plusieurs jours que j'essayes toutes les solutions que j'ai trouvé sur le net pour centre mon site web en CSS.
Je test pour le moment mon site en local avec EasyPhp sur IE 6 et Firefox.
Sur Firefox, tout va bien mon site se centre.
Par contre sur IE, rien à faire le site reste collé à gauche.

Voici mon code CSS (j'utilise le conteneur global qui inclus toute ma page entre les deux balises body) Je me suis permis de mettre le reste du code CSS au cas ou celui-ci pourrait interferer.

body {

height: 100%;
margin: 0;
background-color: #C9DAFF;
}


div#global {
min-height: 100%;
width: 980px;
margin: auto;
position: absolute;
padding: 0 ;
background: url(images/fondscorps.gif) center repeat-y;
top: 1px;
}

div#center {
/* Pour éviter la superposition
du pied de page et du contenu : */
padding-bottom: 50px;
overflow: auto;
}

div#en_tete
{
width: 980px;
height: 100px;
background-color: #0035AD;
/*background-image: url("images/haut.jpg");*/
background-repeat: no-repeat;
/*margin-bottom: 10px;*/
}

div#menu_verticale
{
width: 980px;
height: 25px;
background: url(images/bandeau980.gif) no-repeat top;
}

div#menu {
float: left;
width: 200px;
height: auto;
/*background: url(images/logoRB.gif) no-repeat bottom right;*/
/*margin-bottom: 40px*/
}

div#corps {
float: right;
width: 780px;
height: auto;
}

div#pied_de_page {
position: absolute;
width: 100%;
height :25px;
bottom: 0px;
}



Merci pour votre aide. J'espère que j'ai été assez clair et précis. Configuration: Windows XP
Internet Explorer 6.0
Firefox


Gihef
févr. 07
Suivant
REPONSES
Gihef
févr. 07
byothe
mars 07
byothe
mars 07
Gihef
mars 07
byothe
mars 07
Gihef
mars 07
byothe
mars 07
byothe
mars 07
tonnick
mai 07
krof65
mai 07
Version Web
Réalisé par RedShift
no save