Menu
Is it possible to adjust the definition of a style so that it is immediately reflected across all elements?
For example, say I have a CSS class defined as such:
.mystyle
{
color:blue;
}
And I have 20 elements on my page that use this style. Can I use javascript to change the color in the .mystyle to red, and so change the color of all the elements simultaneously and without having to reference the .style.color for each one? I haven’t found any way to reference CSS styles this way.
Thanks 😮
.Rye