salut,
soit mettre le lien vers ton fichier CSS entre les balises HEAD (comme il a dit Hiron)
<link rel="stylesheet" type="text/css" href="ici_le_lien_relatif.css" />
soit dans le même fichier .php ajoutes le code css entre les balises HEAD comme suit:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <style type="text/css">
table {
border: medium solid #6495ed;
border-collapse: collapse;
width: 50%;
}
th {
font-family: monospace;
border: thin solid #6495ed;
width: 50%;
padding: 5px;
background-color: #D0E3FA;
background-image: url(sky.jpg);
}
td {
font-family: sans-serif;
border: thin solid #6495ed;
width: 50%;
padding: 5px;
text-align: center;
background-color: #ffffff;
}
caption {
font-family: sans-serif;
}
</style> |
Pour apprendre lire les cours et tutoriels CSS : http://css.developpez.com/cours/
Partager