I have a row with a column of tanna 12. I center the text horizontally inside this column but now I want it to be centered vertically in the middle of the screen. How could I do it? I tried flexbox to see if I could center the row but it did not work for me. any ideas? the row is shown above in the navigation bar.
My code is as follows:
<div>
<img src="\assets\img\imag.jpg" class="imagen img-fluid" alt="Imágen responsive">
</div>
<div class="d-flex align-items-center">
<div class="row">
<div class="col-12 col-md-12 col-sm-12 text-center" id="texto"></div>
</div>
</div>
What I want is that what I show with javascript using the text id is shown in the center of the screen, with the code I have shown at the top (in the navigation bar). I tried giving a position: absolute to the div that contains the row but it does not work as I want since when I resize the window size it does not adapt.