Currently, I am utilizing bootstrap to configure the correct classes on different elements for optimal layout across various devices. It appears that many of these elements require something along the lines of control-label col-md-2
. However, after making changes to several elements, what if I realize that col-md-9
would be more suitable? It can become tedious to go back and modify each element individually. Therefore, my objective is to:
<label class="label-class"/>
using
.label-class {
control-label col-md-9
}
Is this achievable? Every solution I encountered online regarding merging classes pertains to a different issue. Alternatively, if my approach is incorrect, I am open to learning a better method for testing multiple layouts :)
Edit: Following further research, I came across Can a CSS class inherit one or more other classes? - it appears that perhaps the answer is 'not without additional utilities' unfortunately.