J'ai déjà montré comment surligner un texte ou une partie de texte qui, par défaut , se surligne toujours en jaune.
Voici maintenant comment mettre un titre, un texte ou une partie de texte en évidence en créant un fond dont on peut choisir la couleur.
Il suffit, pour cela, de créer un fond ou back-ground et de lui donner une couleur
Fond= background-color: red;
CODE
<p><strong><span style="color: black; font-family: Georgia, 'Times New Roman', Times, serif; line-height: normal; text-align: justify; background-color: red;"> VOICI LE CODE DE LA MISE EN EVIDENCE D'UN TITRE </span></strong></p>
RESULTAT
VOICI LE CODE DE LA MISE EN EVIDENCE D'UN TITRE
Ce code permet toutes les modifications possibles
-La police de caractère.
-La taille de la police et par voie de conséquence, du background.
-La couleur du fond. Ici "red".
-La couleur de la police: Ici, "noire".
CODE AVEC UNE AUTRE COULEUR DE POLICE
<p><strong><span style="font-family: Georgia, 'Times New Roman', Times, serif; line-height: normal; text-align: justify; background-color: red;"><span style="color:#FFFFFF;"> VOICI LE CODE DE LA MISE EN EVIDENCE D'UN TITRE </span></strong></span></p>
RESULTAT
VOICI LE CODE DE LA MISE EN EVIDENCE D'UN TITRE
DERNIER CODE AVEC UN FOND VERT "GREEN;"
<p><strong><span style="font-family: Georgia, 'Times New Roman', Times, serif; line-height: normal; text-align: justify; background-color: GREEN;"><span style="color:#FFFFFF;"> VOICI LE CODE DE LA MISE EN EVIDENCE D'UN TITRE </span></span></strong></p>
RESULTAT
VOICI LE CODE DE LA MISE EN EVIDENCE D'UN TITRE
commentaires