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

221
Vistas
Text autoscrolled to bottom in dialog on load

I am trying to build a page to display the terms and conditions for my website. I am using nebular framework for my website. On clicking a link, the terms and conditions are displayed to the user in a modal dialog. The issue i am facing here is when the modal window is loaded, the text at the bottom of the panel is shown to the user rather than the text at the top. I would like to show the text at the top first from where the user can scroll down. Please see screen print and the corresponding code below,

Modal Window displaying Terms and Conditons

HTML Code

  <nb-card status="warning" class="dialog-card" nbSpinnerStatus="warning">
  <nb-card-header>Terms and Conditions</nb-card-header>    
  <nb-card-body>
      <div class="tandctext">
        <label>
          <b><u>Terms and Conditions</u></b>
          <p>
          A Terms and Conditions agreement acts as legal contracts between you (the company) who has the website or mobile app, and the user who accesses your website/app.
          Having a Terms and Conditions agreement is completely optional. No laws require you to have one. Not even the super-strict and wide-reaching General Data Protection Regulation (GDPR). 
          </p>
        </label>
        <br/>
        <div>
            <button class="offset-sm-5 col-sm-2" tabindex="2" type="submit" nbButton status="basic" autofocus (click)="closeDialog()">Close</button>
        </div>
      </div>     
    </nb-card-body>
  </nb-card>

CSS

.dialog-card{
    width: 800px;
    max-height: 90vh;
}

.tandctext {
    height: 50vh;
    overflow: auto;
}

Please help me with the best & easy way to do this.

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