-1

I would like to know how to set dynamic background colour using CSS.

For example if you go to this link you will see the background colour of the Ask a question button is #5CB85C but my theme colour is #CD2122. What is want is Background colour of Ask a question should be dependant on my theme colour. So if I change the theme colour to Red, Blue or anything button colour should also be changed accordingly.

Hope I was able to explain it clearly.

Thanks Avinash

jezrael
  • 822,522
  • 95
  • 1,334
  • 1,252
  • Duplicity: http://stackoverflow.com/questions/197748/how-do-i-change-the-background-color-with-javascript – jezrael May 30 '15 at 10:30

1 Answers1

0

you have to made a css for this two different css like blue.css n red.css when your theme color red than call red.css .. according to theme change css..