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

113
Visualizações
Splitting large piece of text of an element into it's Sibling Elements

I have a large piece of text (5000,10,000) inside a

tag. I want to create a function which divides this text into it's sibling

tags according the height of the device.

So basically I'm making an e-book app, so there is a div of .chapters in which theres a p tag in which i will put chapter text in. I want a function that will divide this long text into it's sibling p tags so after that i can make a slide show.

the .chapter div has overflow:scroll propert on it.

<div class="chapters with-preview current-chapter">
                    <p class="0">
                        ...all the chapter content
                    </p>
                    <p class="1">
                        ...empty sibling divs
                    </p>
                    <p class="2">
                        ...empty sibling divs
                    </p>
 </div>

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