Currently I have defined through bootstrap the following template of my component:
<div class="container">
<div class="row my-4">
<div class="col-md-12 d-flex justify-content-center">
<h2> EVALUACIÓN DE {{ curso }} </h2>
</div>
</div>
<div class="row">
<div class="col-md-9">
<h4>Pregunta 1 de 20 </h4>
<p>¿Cúal de las siguientes alternativas es correcta? </p>
</div>
<div class="col-md-3 d-flex align-items-center" id="icono-reloj">
<img class="mx-2" src="/assets/img/alarm-fill.svg" alt="" width="24" height="24" title="timer"> <span class="mx-3">0:20</span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="list-group" ngFor="let alternativa of alternativas">
<p class="list-group-item list-group-item-action" (click)="avanzar()">este es un ejemplo de una alternativa ...</p>
</div>
</div>
</div>
</div>
I want to implement that when the browser screen is reduced to less than 767.98px it will center the question lines.
From what I have read this would be done with jquery but it is no longer recommended. Additionally I read that the ideal would be to use the class "Renderer2" So my query would be:
That part of the documentation on Renderer2 will allow me to make the sensing of the screen size since in some way there must be a kind of media query which detects when the screen is less than 767.98px and then adds the bootstrap classes that I defined so that the divs i wish to focus on.
