Page 1 sur 1

Espace entre En tete et texte

Publié : 31 déc. 2007, 13:22
par Tony kpz
Première fois que je viens sur le foum ou en tout cas que je pose une question. Je viens de commencer la lecon CSS de http://info.sio2.be/kpz/4/1.php . Problème il reste tjs un espace entre l'entête et le le texte et je vois pas sur quel paramètre jouer ( mes marges sont à 0) si vous avez une solution pour un débutant merci. J'ai vu qu'il y'avait des faq sur ce sujet mais pas vraiment compris ce qu'il fallait faire.

Voici le code :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><meta
content="text/html; charset=ISO-8859-1"
http-equiv="content-type"><title></title><style
type="text/css">
#tete {
background-color: #ccffff;
}
#menu {
width: 150px;
float: left;
background-color: #ccffff;
}
#texte {
margin-left: 150px;
background-color: #cc66cc;
margin-top: 0px;
margin-bottom: 0px;
}
#pied {
background-color: #99ff99;
clear: left;
}
h1 {
margin-top: 0px;
margin-bottom: 0px;
}
h2 {
border-style: none none dotted;
margin-top: 0px;
margin-bottom: 0px;
}
h3 {
margin-top: 0%;
}
.classe {
float: left;
background-color: #ffff99;
}
.classe2 {
float: left;
}
</style></head>
<body><div id="tete"><h1>EN TETE</h1></div><div
id="menu">MENU<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>&nbsp;</div><div><br><div
id="texte"><h2>TEXTE</h2><br><br><div
style="width: 724px;" id="img1"><div><div
style="margin-left: 134px; width: 806px;"></div></div><div><div><div
style="margin-left: 121px; width: 819px;"></div></div><div><div><div
style="margin-left: 121px; width: 819px;"><img
style="width: 400px; height: 300px; float: left;"
class="classe2" alt=""
src="../../Site%20intrenet%20leo%20lagrange/images/131-2-05-aviron2.jpg"></div></div></div><div><div><div
style="margin-left: 121px; width: 819px;"></div></div></div></div><br></div><br><div></div><br><br><br><div><div><div
style="margin-left: 132px; width: 808px;"><br></div></div></div><br><div><div><div
style="margin-left: 132px; width: 808px;"></div></div></div><br><br><div></div><br><br><div><div><div
style="margin-left: 132px; width: 808px;"></div></div></div><br><br><br><br><br><br></div><div
id="pied"><h3>PIED DE PAGE</h3></div></div>*
{ margin: 0; padding: 0; } </body></html>


Merci pour votre réponse et bonn fête de fin d'année


Message envoyé avec : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)

Publié : 31 déc. 2007, 13:53
par Fabrice.Tres.Net
Normal, tu as inséré un retour à la ligne le < br > avant le DIV contenant TEXTE!

Code : Tout sélectionner

<br>&nbsp;</div><div><br><div
id="texte">