Langage html

Fermé
JESUS - 1 août 2008 à 21:12
inizar Messages postés 207 Date d'inscription mercredi 30 janvier 2008 Statut Membre Dernière intervention 3 juillet 2014 - 2 août 2008 à 08:37
Bonjour,
je suis un debutant .j'ai crée un tableau en langage htlm et je ne sais comment ajouter les mêmes attributs (police,taille ,couleur ) à tout le tableau
MERCI
A voir également:

3 réponses

inizar Messages postés 207 Date d'inscription mercredi 30 janvier 2008 Statut Membre Dernière intervention 3 juillet 2014 15
2 août 2008 à 08:37
Bonjour :)

Voila je l'ai fais pour toi


<head>
<style type="text/css">
<!--
.Style4 {
color: #FFFFFF;
font-size: 18px;
font-family: monotype corsiva;
}
.Style6 {color: #FFFFFF; font-size: 18px; font-family: "Times New Roman", Times, serif; }
.Style8 {color: #FFFFFF; font-size: 18px; font-family: "Courier New", Courier, monospace; }
.Style10 {color: #FFFFFF; font-size: 18px; font-family: Verdana, Arial, Helvetica, sans-serif; }
-->
</style>
</head>

<body>
<table width="98%" height="160" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FF0000"><span class="Style6">exemple1</span></td>
<td bgcolor="#666666"><span class="Style8">exemple2</span></td>
</tr>
<tr>
<td bgcolor="#00CC33"><span class="Style10">exemple3</span></td>
<td bgcolor="#0099FF"><span class="Style4">exemple4</span></td>
</tr>
</table>



Bonne journée ;)



2
Dora The Explorer Messages postés 2811 Date d'inscription mardi 4 septembre 2007 Statut Contributeur Dernière intervention 1 septembre 2011 854
1 août 2008 à 21:17
Salut !

Tu utilises une feuille de style externe?
Je connais pas bien les tableaux, mais certaines choses tu dois pouvoir les modifier via
table{
//
}

Sinon tu le fais sur les th et les td.
0
Utilisateur anonyme
2 août 2008 à 08:12
Sinon dans la balise table rajoute bgcolor pour background ou alors tu met style a l'interieur de la balise c'est comme une feuille CSS.
0