0

Please help me, my login page deforms when I click it to type on my android

When I tap or hover the login button it reshapes and deforms making it dirty please can you help me https://code.sololearn.com/W9f52GkvIYX5/?ref=app

15th Mar 2021, 7:36 PM
SCP 251
SCP 251 - avatar
5 odpowiedzi
0
your .box is positioned and have a fixed height set... as soon as content doesn't fit inside it, the box let its content overflow ^^ you should remove 'height' from .box css rules, to let it grow with its content ;) (on android, when typing inside a field the soft keyboard pop up, reducing viewport height)
15th Mar 2021, 7:43 PM
visph
visph - avatar
0
Thanks
15th Mar 2021, 7:58 PM
SCP 251
SCP 251 - avatar
0
My email label now hovers over the input
15th Mar 2021, 8:02 PM
SCP 251
SCP 251 - avatar
0
Y does it do that text overlay when I don't fill the email form right
15th Mar 2021, 8:13 PM
SCP 251
SCP 251 - avatar
0
yes, email field is only 'valid' if it contains a '@' inside it: in your case, the :valid hack to detect empty field cannot work as expected... you need to use js (jquery) to set/unset classname according to input field empty or not ^^ your code, modified to handle empty field classnames through js and introducing some responsiveness to adapt sizes according to viewport size (and moving your scripts tags outside of <style>: link to jquery required, your script commented): https://code.sololearn.com/W2JRGg4oIGjd/?ref=app
15th Mar 2021, 9:18 PM
visph
visph - avatar