As I embark on creating an HTML theme, I have decided to incorporate Bootstrap 4.
One challenge I encountered was the need to repeat Bootstrap classes in various places, such as:
<div class="row border border-top-0 mt-2 p-2 bg-info">One</div>
<div class="row border border-top-0 mt-2 p-2 bg-info">example 2</div>
<div class="row border border-top-0 mt-2 p-2 bg-info">something</div>
This led me to wonder if it's possible to consolidate all these Bootstrap classes into a single custom name. For example:
myclass="row border border-top-0 mt-2 p-2 bg-info"
and then utilize this new class for elements like so:
<div class="myclass">One</div>
<div class="myclass">example 2</div>
<div class="myclass">something</div>
Please note that relying solely on copying and pasting is not recommended. If a new class needs to be added, it would require updating every instance individually.