variable globale et css

variable globale et css - HTML/CSS - Programmation

Marsh Posté le 17-11-2004 à 11:01:27    

voilà le fond du problème :
 
j'utilise une belle feuille css pour mon site ! j'utilise dedans un nombre défini de couleur à plusieurs endroits (pour plusieurs balises, plusieurs classes etc..)
est-il possible de définir ces couleurs quelque part et après de faire référence à elles afin de n'avoir pas tout à modifier quand on veut mettre un bleu foncé à la place d'un bleu très foncé ??
 
genre un truc du style :
 

Code :
  1. $$maCouleur : #CC0098;
  2. h1
  3. {
  4.    text-color: $$maCouleur;
  5. }
  6. p
  7. {
  8.    background-color: $$maCouleur;
  9. }


 
quelqu'un a-t-il une astuce pour arriver à cela ?

Reply

Marsh Posté le 17-11-2004 à 11:01:27   

Reply

Marsh Posté le 17-11-2004 à 11:42:43    

non


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 17-11-2004 à 12:16:30    

A part générer la CSS avec un langage serveur type PHP, non :
http://jeffcroft.com/blog/archives/000174.php

Reply

Marsh Posté le 17-11-2004 à 12:18:11    

fastclemmy a écrit :

A part générer la CSS avec un langage serveur type PHP, non :
http://jeffcroft.com/blog/archives/000174.php


whoa [:mlc]  
Ya quand même des putains de tordus dans la vie


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 17-11-2004 à 12:25:36    

pas si tordu que ça en fait... ça me plait bien cette affaire là :)
allez hop au taf !!
merci fastclemmy

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed