I am using bootstrap in reactjs and attempting to center a text in the middle of the screen, but it seems to not be working. Can someone please point out what I am doing wrong?
<div className="h-100 d-flex align-self-center justify-content-center">
<div className="alert alert-danger">I SHOULD BE CENTER</div>
</div>
https://i.sstatic.net/udCaw.png
Could someone assist me in determining why this is not working?
I have attempted using both align-items-center
and align-self-center
, but to no avail.