Bonjour,
C'est mon premier message sur ce forum; alors j'espère que ma question ne sera pas trop "idiote".
Je dois realiser quelques pages web pour un ami. J'ai donc choisi ce qui semble le choix le plus judicieux, le XHTML + CSS.
Au passage merci pour ton livre Raphaël, très abordable aux débutants et qui constitue une excellente base.
Passons au concret:
Je n'arrive pas à comprendre pourquoi entre mon titre (employé dans un balise "p") et mon sous-titre (avec un menu) j'obtiens un espace à l'affichage sous IE ?
J'ai relu mon code mais sans succès.
Voici mon fichier html:
[b] Et mon fichier CSS:
[/b]
Modifié par Loki (12 Jul 2005 - 09:04)
C'est mon premier message sur ce forum; alors j'espère que ma question ne sera pas trop "idiote".
Je dois realiser quelques pages web pour un ami. J'ai donc choisi ce qui semble le choix le plus judicieux, le XHTML + CSS.
Au passage merci pour ton livre Raphaël, très abordable aux débutants et qui constitue une excellente base.
Passons au concret:
Je n'arrive pas à comprendre pourquoi entre mon titre (employé dans un balise "p") et mon sous-titre (avec un menu) j'obtiens un espace à l'affichage sous IE ?
J'ai relu mon code mais sans succès.
Voici mon fichier html:
<!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" >
<head>
<title>Bienvenue sur mon site !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="style" href="style.css" />
</head>
<body>
<div id="main">
<p id="titre">AZA</p>
<ul id="sous_titre">
<strong>
<li>Homme à tout faire</li>
<li>A votre service</li>
</strong>
</ul>
</div>
</body>
</html>
[b] Et mon fichier CSS:
body {
margin: 20;
text-align: center;
background-color: #344d7b;
}
#main {
margin-left: auto;
margin-right: auto;
text-align: left;
width: 700px;
height: 500px;
padding: 0;
border: 0px solid black;
background-color: white;
}
#titre {
height: 80px;
float: left;
display: block;
margin: 0;
width: 200px;
padding: 0;
color: #ebd261;
font-family: Georgia, times, verdana;
font-size: 4em;
letter-spacing: 0.1em;
background-color: #1e90ff;
text-align: center;
}
#sous_titre {
height: 80px;
font-size: 1.7em;
padding-top: 0px;
list-style-type: none;
font-family: Georgia, arial, serif;
color: #1e90ff;
letter-spacing: 0.1em;
word-spacing: 0.2em;
background-color: #ebd261;
text-align: center;
}
[/b]
Modifié par Loki (12 Jul 2005 - 09:04)