If the registration is successful or the form is entered incorrectly, an alert appears
But if the mobile device is smaller than the entire page in height, then the alert is not visible, because it appears only at the top of the page
How to make it so that it always appears at the top of the user window?
CodePudding user response:
#modal{
position: fixed;
top: 0;enter code here
left: 0;
width: 100%;
}