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

135
Vistas
Sortable div table

I'm trying to create a table using divs and I want them to be sortable (alphabetically). Here's a snippet of two rows:

<div grid-row="" grid-pad="1.5" grid-gutter="3" grid-responsive="">
  <div grid-col="1" grid-pad="1.5">*image*</div>
  <div grid-col="4" grid-pad="1.5">A-title</div>
  <div grid-col="4" grid-pad="1.5">B-author</div>
  <div grid-col="3" grid-pad="1.5">C-tag</div>
</div>
<div grid-row="" grid-pad="1.5" grid-gutter="3" grid-responsive="">
  <div grid-col="1" grid-pad="1.5">*image*</div>
  <div grid-col="4" grid-pad="1.5">D-title</div>
  <div grid-col="4" grid-pad="1.5">E-author</div>
  <div grid-col="3" grid-pad="1.5">F-tag</div>
</div>

Using divs makes the table responsive and neatly integrated with the Cargo site - I tried out using <td> elements, but I did not get the responsive result i wished for.

Is there a way to code this using these kind of divs? The most important cell to have sortable is the ones with the "title" in them. Should there be something telling which columns to be sorted too?

The site is running on the Cargo Collective platform using jQuery 2.1.3.

about 4 years ago · Juan Pablo Isaza
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