I want to change the attributes for all items within a particular block item dynamically. I envision the css having a structure as below, but can't figure out the exact syntax to do it. I would change the class id of the block items, ie. cls1 and cls2, dynamically with javascript or similar.
.cls1 {x: y=z1; ...
h1 {}
p {}
img {}
a {} ...
}
.cls2 {x: y=z2; ...
h1 {}
p {}
img {}
a {} ...
}
- - - - - - - - -
<div class="cls1">
...
</div>