Is there a method to group different type of col in a class

Issue

I’m working on a project where often I need to implement the same type of tag such as
<div class="col-12 col-md-10 col-lg-8 col-xl-4">
and I want to create an equivalent class to group up all the col used. The code I want must become something like
<div class="allcol">

There is a way to make it?

Solution

I find a solution for the problem. In the xhtml page that include all the other pages i put the following tag:

<c:set value="#{'col-12 col-md-6 col-lg-3 fsb12 mt10'}" var="divSmall" />

and in the div i use:

<div class="#{divSmall}">

Everytime i need to make a update i can now modify the ‘set’ tag and all the are propagated to all the pages of my project.

Answered By – BlazekaMarko

Answer Checked By – Pedro (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.