Currently utilizing Popper
from Material-UI
<Popper id={"simplePopper"} open={true} style={{backgroundColor: 'red',opacity:'0.5',width:'100%',height:'100%'}}>
<div style={{height:"100%",verticalAlign: "middle", textAlign: "center"}}>
<i className="fas fa-5x fa-circle-notch fa-spin"></i><br/>
Loading
</div>
</Popper>
In my current setup, I am trying to position the fa-spin
icon in the center both vertically and horizontally within the browser.
Although it is centered horizontally, the icon remains stuck to the top of the screen.
The use of
verticalAlign: "middle"
doesn't seem to be working as intended.
Where should I focus my efforts on fixing this alignment issue?