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

208
Visualizações
Is it possible to remove "</tr><tr>" from a table? So that all the content is on one row

I have a very specific problem. I'm using a fairly limited platform for a client that has a generated element of a table with up to 10 columns and unlimited rows. What I want to do is have maybe up to 25 columns and then put these columns all on a single row. Currently if I have 25 columns, it goes into 3 rows. The only limitation is that the platform only lets me use up to 10 columns wide, and doesn't let me manually change the amount of rows. And I can't edit the HTML because it's generated every page load.

Is there any way I can search within the ID of the table, find the /tr tr and delete it, or replace it with nothing?

Something like: getElementById("table.multi-cols") then find the /tr tr and replace with ""?

Apologies for my very limited understanding of javascript

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

0

If I got your question right,

tr {
  display: inline-flex; /* or   display: inline-block; */
}
<table>
  <tr><td>Row 1 cell 1</td> <td>Row 1 cell 2</td></tr>
  <tr><td>Row 2 cell 1</td> <td>Row 2 cell 2</td></tr>
  <tr><td>Row 3 cell 1</td> <td>Row 3 cell 2</td></tr>
</table>

than if you want it to nowrap, set table { white-space: nowrap; }

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