J'ai crée ma première page ccs avec un tuto, et chargé un menu tout fait sur alsacreation

Merci d'avance.
Modérateur : chinon37
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"
lang="fr">
<head>
<title>Largeur fluide, header/menu gauche/contenu/footer.</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<style type="text/css">
body {
margin: 0;
padding: 0;
font-size: 0.8em;
background-color: #ffffff;
}
#header {
background-color: #99ffff;
width: 100%;
background-image: url(../../animations/cooltext39542079.jpg);
background-position: center;
background-repeat: no-repeat;
height: 92px;
}
#conteneur {
border-style: solid;
border-width: 2px;
background-color: #ccccff;
width: 90%;
margin-left: 5%;
margin-top: 5px;
margin-bottom: 0px;
display: table;
}
#centre {
border-style: solid;
border-width: 1px;
background-color: #ff99ff;
margin-left: 100px;
margin-right: 100px;
position: relative;
float: none;
}
#gauche {
width: 100px;
position: relative;
background-color: #ffff99;
float: left;
margin-left: 0px;
font-family: Arial,Helvetica,sans-serif;
font-size: larger;
font-weight: bold;
line-height: 40px;
margin-top: 0px;
padding-top: 10px;
padding-left: 0px;
text-align: center;
left: 0px;
margin-bottom: 0px;
}
#pied {
border-style: solid;
border-width: 1px;
background-color: #99cc99;
clear: both;
margin-bottom: 0px;
margin-top: 0px;
float: none;
position: relative;
height: 40px;
}
.menugauche {
margin: 0;
padding: 0;
list-style-type: none;
}
.menugauche li {
margin-bottom: 5px;
}
.menugauche a {
margin: 0 2px;
color: #000000;
text-decoration: underline;
}
.menugauche a:hover {
text-decoration: none;
}
p {
margin: 0 0 10px;
}
#partenaire {
background-color: #cc0000;
width: 100px;
float: right;
position: relative;
margin-top: 0px;
padding-top: 10px;
left: 0px;
padding-left: 0px;
margin-left: 0px;
margin-bottom: 0px;
bottom: 0px;
}
</style>
</head>
<body>
<div style="top: 0px; height: 665px;" id="conteneur">
<div id="header"><br />
</div>
<div id="gauche">
<ul class="menugauche">
<dl>
<dt><a href="">Le Club</a></dt>
<dt><a href="">Calendrier</a></dt>
<dt><a href="">Résultats</a></dt>
<dt><a href="">Liens</a></dt>
<dt><a href="">Partenaires</a></dt>
<dt><a href="">Annonces</a></dt>
<dt><a href="">Photos</a></dt>
<dt><a href="">Contact</a></dt>
</dl>
</ul>
<big>
</big></div>
<div id="partenaire">partenaire</div>
<div id="centre"> texte</div>
<div id="pied">pied de page</div>
</div>
</body>
</html>
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">
<title>
Largeur fluide, header/menu gauche/contenu/footer.
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#conteneur {
border-style: solid;
border-width: 2px;
background-color: #ccccff;
width: 90%;
margin-left: 5%;
margin-top: 5px;
margin-bottom: 0px;
}
#header {
background-color: #99ffff;
width: 100%;
background-image: url(../../animations/cooltext39542079.jpg);
background-position: center;
background-repeat: no-repeat;
height: 92px;
}
#centre {
border-style: solid;
border-width: 1px;
background-color: #ff99ff;
margin-left: 100px;
margin-right: 100px;
}
#gauche {
width: 100px;
background-color: #ffff99;
float: left;
margin-left: 0px;
font-family: Arial,Helvetica,sans-serif;
line-height: 40px;
margin-top: 0px;
padding-top: 10px;
padding-left: 0px;
left: 0px;
margin-bottom: 0px;
}
#pied {
border-style: solid;
border-width: 1px;
background-color: #99cc99;
clear: both;
margin-bottom: 0px;
margin-top: 0px;
height: 40px;
}
</style>
</head>
<body>
<div style="top: 0px;" id="conteneur">
<div id="header">
<br>
</div>
<div id="gauche">
<div style="margin-left: 2em;" class="menugauche">
<dl>
<dd>
bla bla
</dd>
</dl>
</div>
</div>
<div id="centre">
texte<br>
</div>
<div id="pied">
pied de page
</div>
</div>
</body>
</html>
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité