0
I would like to create a css that when a certain class was in the Xs size it would have a red font-color and the other sizes this color would change to green. But without having to repeat the text. type:
<div class="hidden-xs">
<div class="Vermelho">
Teste
</div>
</div>
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl">
<div class="verde">
Teste
</div>
</div>
Wanted a class would have two color alternative depending on the size...
<div class="col-xs-12">
<div class="Cor">
Teste
</div>
</div>
Is such a feat possible? It can be in CSS or JS. Thanks in advance for your help
import a css file, with the following setting . col-Xs-12 {color:red;} . col-Sm-12 {color:blue;}
– urb