Home > Software design >  How to display an alert at the top of the window and not the page?
How to display an alert at the top of the window and not the page?

Time:09-13

If the registration is successful or the form is entered incorrectly, an alert appears enter image description here

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?

modal.scss enter image description here

CodePudding user response:

#modal{ position: fixed; top: 0;enter code here left: 0; width: 100%; }

  • Related