Quand je fais un background en CSS pour afficher une image, l'image ne s'affiche pas hors quand je l'affiches avec du XHTML avec le wimg src="vf.gif" /> elle s'affiche.Hors je voudrais l'afficher en CSS car il faut que je fasses répéter l'image verticalement et si je ne me trompes on ne peut pas le faire en XHTML,donc comment puis-je faire pour que mon image s'affiche avec la propriété background ?
Mes codes :
XHTML :
CITATION
<!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">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css.css">
<meta name="author" content="" />
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="fr" />
<meta name="keywords" lang="fr" content="" />
</head>
<body>
<div class="barre"></div>
</body>
</html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css.css">
<meta name="author" content="" />
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="fr" />
<meta name="keywords" lang="fr" content="" />
</head>
<body>
<div class="barre"></div>
</body>
</html>
CSS :
CITATION
body
{
font-family: verdana, arial, sans-serif;
font-size: 12px;
margin-left: 40px;
margin-right: 40px;
background-image: url(images/fond.gif);
}
.table
{
border: 1px solid;
border-color: #0000FF;
}
.barre
{
float: left;
width: 24px;
background: url('images/barre.gif');
}
.barre1
{
float: right;
}
{
font-family: verdana, arial, sans-serif;
font-size: 12px;
margin-left: 40px;
margin-right: 40px;
background-image: url(images/fond.gif);
}
.table
{
border: 1px solid;
border-color: #0000FF;
}
.barre
{
float: left;
width: 24px;
background: url('images/barre.gif');
}
.barre1
{
float: right;
}
Merci d'avance
@+
