Not sure if this would require Javascript, or if there is a way to do this with CSS alone.
Basically I want to have a class active only for medium and small size browswers. Example:
<style>
.big {font-size: 2em;}
.normal {font-size: 1em;}
</style>
<div class="big">
<p> This text is huge on normal size screens.</p>
</div>
I want to either be able to switch the class ".big" at mobile/medium view to ".normal" or even disable that class at that view-port size.
Is this possible? Even with any work-arounds?
you can do something like below.
Add both big and normal class to the div. But keep the class hierarchy like this.
First normal then big
now you can say at a particular viewport, make the normal's font size with important value.