javascript - Variables in CSS, is that possible? -


this question has answer here:

is there way make css dynamic? want set variable in css file. this:

var basecolour = #000;  body{   background-colour: basecolour; } 

i want let user choose colour. want set variable in css user input javascript.

is possible? or @ least 1 variable?

no css can't default, may want use sass this.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -