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

129
Vistas
Django how to add html style in JavaScript for load more button

I successfully implement load more button but now I can't add my html style in JavaScript. This is my original style before implement load more button. see the screenshot: enter image description here

after implementing load more button. I have style like this. see the screenshot below:

enter image description here

How to implement my first style for individually showing each blog.

here is my JavaScript for showing html:

 postsBox.innerHTML += `<div class="card mb-4" style="max-width:700px";>
                                               
                                                ${post.title}
                                                <br>
                                                ${post.body}
                                            </div>

`

my .html page:

<div id="posts-box"></div>
            <div id="spinner-box" class="not-visible">
                <div class="spinner-border text-primary" role="status"></div>
            </div>
            <div id="loading-box">
                <button class="btn btn-primary" id="load-btn">Load more</button>
</div>
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