175
rated 0 times
[
178]
[
3]
/ answers: 1 / hits: 36377
/ 15 Years ago, wed, april 8, 2009, 12:00:00
I know it is possible to add new CSS classes definitions at runtime through JavaScript. But...
How to change/remove CSS classes definitions at runtime?
For instance, supose a I have the class below:
<style>
.menu { font-size: 12px; }
</style>
What I want is, at runtime, change the font-size
rule of the .menu
class, so that every element in the page who uses this class will be affected.
And, I also want to know how to remove the .menu
class definition.
More From » css