Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
Is there a method to group different type of col in a class

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?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

It's a great question and there maybe some sort of library or extension of Bootstrap that allows you to do this, but I'm pretty sure nothing exists out of the box if you're just using the bootstrap library.

One idea though, if you are using a CSS preprocessor like SASS or LESS, you could potentially extend the bootstrap classes to allow you to do this. This is just a suggestion though and not something I've played around with.

https://www.w3schools.com/sass/sass_extend.php

about 4 years ago · Juan Pablo Isaza Relatório

0

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.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda