Bonjour
J'ai voulu faire un bloc div pour centrer mon site.
Mais il ne me semble rien avoir oublié et pourtant ça marche pas.
je vous mets le code .css
et voici le code HTML
Lien : Le site
Modifié par NicoTNT (18 Oct 2005 - 16:02)
J'ai voulu faire un bloc div pour centrer mon site.
Mais il ne me semble rien avoir oublié et pourtant ça marche pas.
je vous mets le code .css
body {
background-color: Black;
color: White;
}
.centrageauto {
margin-left:auto;
margin-right:auto;
width:800px;
}
.BlochHaut {
position: relative;
clear: both;
background-image: url(header.jpg);
height: 200px;
width : 800px;
}
.BlocGauche {
position: relative;
float: left;
clear: left;
background-image: url(left.jpg);
height: 800px;
width: 180px;
}
.BlocCentre {
position: relative;
float: left;
clear: none;
background-image: url(center.jpg);
height: 800px;
width: 440px;
}
.BlocDroit {
position: relative;
float: left;
clear: none;
background-image: url(right.jpg);
height: 800px;
width: 180px;
}
et voici le code HTML
html>
<head>
<title>L'apprenti Webmaster - site pour débutant</title>
<link rel="stylesheet" href="./style/style.css" type="text/css">
<title>L'apprenti Webmaster - Le site d'entraide des webmasters débutants</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div align="centrageauto">
<div class="BlochHaut"></div>
<div class="BlocGauche"></div>
<div class="BlocCentre"></div>
<div class="BlocDroit"></div>
</div>
</body>
</html>
Lien : Le site
Modifié par NicoTNT (18 Oct 2005 - 16:02)