Problem fond decran css

ben trois -  
Yoan Messages postés 11795 Date d'inscription   Statut Modérateur Dernière intervention   -
Bonjour, je créer un site avec des page html et une feuille de style css
dans ma feuille j'ai écrit:

@charset "utf-8";
/* CSS Document */

body{
font-family:Arial, helvetica, sans-serif;
font-size:11px;
color:#333333;
margin:0px;
background-image: url("images/back.png");
background-repeat: repeat-x;
}
#global{
position: absolute;
width:976px;
top:10px;
left:50%;
margin-left:-488px;
}
et sur ma page html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
<style type="text/css" title"currentStyle" media="screen">
@import url(./css/style.css);
</style>
</head>

<body>
<div id="tete"><img src="images/logo-moments-et-matieres.jpg" width="269" height="269" />
</body>
</html>

Mais je n'apercoi pas le fond d'écran!!
je vous remerci d'avance pour votre aide,
je suis dans la panade!
A voir également:

5 réponses

Yoan Messages postés 11795 Date d'inscription   Statut Modérateur Dernière intervention   2 332
 
Salut,
heu, commence déjà par corriger les oublis :
il manque un </div>, il manque un = (title="currentStyle"), il manques des doubles quote pour url("")

Après ton truc marche bien chez moi, donc commence par réessayer après avoir corrigé, ton navigateur est peut-être intransigeant avec la syntaxe :)
0
ben trois
 
j'ai corigé tt se que vous m'avez dit.mais, sa fonctione pas !!!
vous visualiser avec quoi la page web ?
on peut voir le fond en reseau local?
0
Yohan85 Messages postés 280 Date d'inscription   Statut Membre Dernière intervention   25
 
essayez : background-image: url("./images/back.png");
0
ben trois
 
j' ai fait se que vous 'avez dit mais sa ne fonctione toujour pa!!
je ne comprend pa pourquoi ca ne marche pa??
j'ai tou fai dan l'odre je pense.
Mais c'est la premiere fois que j'utilise des feuille de style!petetre que je mi prend male?
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Yoan Messages postés 11795 Date d'inscription   Statut Modérateur Dernière intervention   2 332
 
ceci fonctionne-t-il ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
<style type="text/css" title="currentStyle" media="screen">
body{
font-family:Arial, helvetica, sans-serif;
font-size:11px;
color:#333333;
margin:0px;
background-image: url("images/back.png");
background-repeat: repeat-x;
}
#global{
position: absolute;
width:976px;
top:10px;
left:50%;
margin-left:-488px;
} 
</style>
</head>
<body>
<div id="tete">
<img src="images/logo-moments-et-matieres.jpg" width="269" height="269" />
</div>
</body>
</html> 
0