Problème avec l'utilisation de CSS

Namuoras Messages postés 56 Date d'inscription   Statut Membre Dernière intervention   -  
 Utilisateur anonyme -
Bonjour,
Mon fichier CSS ne marche pas pourtant je pense l'avoir bien réussi .
Je vous le montre et vous me direz mes erreurs
HTML :<h1>Salut les petits </h1>
<p>D'abord choisissez le fond</p>
<html>
<head>
<STYLE TYPE="text/css">BODY {scrollbar-face-color: #0069B3; scrollbar-shadow-color: #000000;scrollbar-highlight-color: #FFFFFF;scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-track-color: #0069B3; scrollbar-arrow-color: #FFCC00;}</STYLE>
<SCRIPT LANGUAGE="JavaScript">
Col = new Array;
Colf = new Array;
Col[0] = "white";
Colf[0] = "Blanc";
Col[1] = "green";
Colf[1] = "Vert foncé";
Col[2] = "seagreen";
Colf[2] = "Vert";
Col[3] = "red";
Colf[3] = "Rouge";
Col[4] = "purple";
Colf[4] = "Violet";
Col[5] = "magenta";
Colf[5] = "Violet clair";
Col[6] = "fusia";
Colf[6] = "Rose foncé";
Col[7] = "pink";
Colf[7] = "Rose";
Col[8] = "navy";
Colf[8] = "Bleu marine";
Col[9] = "blue";
Colf[9] = "Bleu";
Col[10] = "skyblue";
Colf[10] = "Bleu ciel";
Col[11] = "cyan";
Colf[11] = "Bleu clair";
Col[12] = "coral";
Colf[12] = "Corail";
Col[13] = "teal";
Colf[13] = "Turqoise";
Col[14] = "tan";
Colf[14] = "Ocre";
Col[15] = "orange";
Colf[15] = "Orange";
Col[16] = "gold";
Colf[16] = "Or";
Col[17] = "yellow";
Colf[17] = "Jaune";
Col[18] = "cream";
Colf[18] = "Vert clair";
Col[19] = "gray";
Colf[19] = "Gris";
Col[20] = "lightgrey";
Colf[20] = "Gris clair";
Col[21] = "brown";
Colf[21] = "Marron";
Col[22] = "black";
Colf[22] = "Noir";
</SCRIPT>
<title>Exemple d'utilisation de CSS externe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Test du CSS" href="Test.css" />
</head>
<body>
<center><br><br>
<font SIZE="2" color="#0069B3" face="verdana">Choisissez votre couleur d'arrière-plan...</font>
<br>
<FORM NAME=ChoixCouleur>
<SELECT NAME="couleur" onChange="document.bgColor = ChoixCouleur.couleur.options[ChoixCouleur.couleur.selectedIndex].value">
<SCRIPT LANGUAGE="JavaScript">
a = 0;
while (a!=23)
{
document.write('<OPTION VALUE="' + Col[a] + '">' + Colf[a] + '\n');
a++
}
</SCRIPT>
</SELECT>
</FORM>
</center>
</body>
</html>
<p><img style="width: 200px; height: 150px;" alt="Exemple d'un placement de texte aligné à droite" title="Cémonie du thé" src="images/xiv_skull.gif" align="right" hspace="15" vspace="15"> </p>
<i>Alors deja que ca c'est fait je vous laisse admirer mon embleme :D</i>

CSS (nommé test.css) :
p
{
color: blue;
font-size: 18px;
}

1 réponse

Utilisateur anonyme
 
<title>Exemple d'utilisation de CSS externe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Test du CSS" href="Test.css" />
(ô_O)

Il faudrait poseter ton message dans le forum Webmastering pour avoir une réponse concréte.
0