CSS doit-il être appelé depuis un fichier inclus par php ?
Bonjour,
Je code du php et j'ai un fichier index.php qui inclus un fichier head.php, menu.php et foot.php.
le dossier css est linké sur la page index.php comme ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <!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" lang="fr">
<head>
<title>test3/index.php</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="styles" type="text/css" href="style.css">
</head>
<body>
<?php include("includes/head.php");?>
</body>
<?php include("includes/foot.php"); ?>
</html> |
et dans le fichier head.php, j'ai ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <header>
<div id="entete">
<span>
<div id="blason">
<img src="images/image.jpg" alt="image" id="image" />
</div>
<div id="titre">
</div>
</span>
<div id="date">
<?php
$mois=array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre');
$jour=array('dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi');
$date=$jour[date('w')].' '.date('j').' '.$mois[date('n')-1];
echo $date;
?>
</div>
</div>
</header> |
et dans le fichier style.css, j'ai ceci :
Code:
1 2 3 4 5 6 7
| @CHARSET "ISO-8859-1";
#entete
{
color: #0AA000;
background-color: #FAAAFF;
min-height:100px;
} |
L'arborescence des mes fichiers dans eclipse est la suivante :
-projet
index.php
-includes
head.php
foot.php
menu.php
-styles
style.css
-images
image.jpg
Le css ne s'exécute pas !
Auriez-vous une solution a mon problème s'il vous plaît ??
Merci,