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

312
Visualizações
CSS equivalent of a jQuery solution to set max height to all elements

With the jQuery code below, I could reset the height of 3 elements to the max of them. I would like to replace it with an CSS-based solution.

  // Set max height.
  var maxHeight = 0;
  var prevEntrySelector = null;
  $(".send-submit-look-col .icon-description").each(function(index) {
    if ($(this).height() > maxHeight) { 
      maxHeight = $(this).height(); 
    }
    // Set height of previous entry and this entry to maxHeight.
    $(this).height(maxHeight);
    if (prevEntrySelector != null) {
      prevEntrySelector.height(maxHeight);
    }
    // this - this selector - this story entry
    console.log( "Height: " + maxHeight );
    prevEntrySelector = $(this);
    return true;
  });

The image below shows the section.

enter image description here

Could you please help find the CSS solution? Here is the page

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

0

Based on your website this might fix your issue, flex-grow: 1 will make the div fill the maximum space!

.send-submit-look-row .send-submit-look-col {
    display: flex;
    flex-direction: column;
}

.send-submit-look-row .send-submit-look-col .icon-description {
    flex-grow: 1;
}
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