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

138
Visualizações
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 à 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