Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

305
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda