+ 4

What should i do please ?? [SOLVED]

[SOLVED] I wrote a code that includes custom alert button I made. It includes an input but when you press it, other elements scale negatively. (Just open the code, press the input box and see for yourself). I'm so frustrated !! Please advise me on what I should do to fix the code 🙏🙏🙏 https://code.sololearn.com/WdtsS5hE9oYN/?ref=app

11th Dec 2020, 12:31 PM
Coolbuoy
Coolbuoy - avatar
2 Respostas
+ 4
Because those elemets height was set with 'vh' means viewport height, that's why whenever you click on the input the keyboard pops-up and decreases the window's height and elements height also decreases. So, you can use other methods to set heights of the elements such as, 'vw' or 'px' or 'em'. In that way you can make your website responsive.
15th Dec 2020, 4:54 AM
Samiun Nafis
Samiun Nafis - avatar
+ 5
Samiun Nafis Thanks alot man !.
27th Dec 2020, 1:52 AM
Coolbuoy
Coolbuoy - avatar