bjr quelq'un pourrais il maider j'ai un probleme d'espacemet vertical entre mes 2 blocs
voici mon code 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>
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css"/>
<title>Bienvenue sur mon site !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<div id="banniere"></div>
<div id="menu"></div>
</body>
</html>
et voici mon code CCS
body
{
width:780 px;
margin: 0 auto;
padding: 0px;
background-image: url("image de fond site.jpg");
text-align:center;
}
#banniere
{
background:url("banniere2.png");
width: 719px;
height: 146px;
background-repeat: no-repeat;
margin-top: 50px;
margin: auto;
position:relative;
}
#menu
{
background:url("menu.png");
width: 444px;
height: 28px;
background-repeat: no-repeat;
padding-top: 20px;
margin: auto;
text-align:center;
position:relative;
}
voici mon code 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>
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css"/>
<title>Bienvenue sur mon site !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<div id="banniere"></div>
<div id="menu"></div>
</body>
</html>
et voici mon code CCS
body
{
width:780 px;
margin: 0 auto;
padding: 0px;
background-image: url("image de fond site.jpg");
text-align:center;
}
#banniere
{
background:url("banniere2.png");
width: 719px;
height: 146px;
background-repeat: no-repeat;
margin-top: 50px;
margin: auto;
position:relative;
}
#menu
{
background:url("menu.png");
width: 444px;
height: 28px;
background-repeat: no-repeat;
padding-top: 20px;
margin: auto;
text-align:center;
position:relative;
}