<form> <input class = 'reg' id = 'log' placeholder = 'Логин' style = 'display:none' maxlength="16"></input> <input class = 'reg' id = 'pass' placeholder = 'Пароль' style = 'display:none' type = 'text' maxlength="10"></input> <input class = 'reg' id = 'rep' placeholder = 'Повторите пароль' style = 'display:none' type = 'password'></input> </form> CSS
.reg { position: absolute; padding: 10px; margin-left: 300px; border-radius:10px; box-shadow: 0 1px 0 #ccc inset; transition:500ms all ease; width: 150px; } .reg:hover { width: 180px; } #log { margin-top: 150px; } #pass { margin-top: 200px; } #rep { margin-top: 250px; } Position:absoluteI need, because I put an element on canvas. What is the problem?style='display:none'at a certain level is converted tostyle='display:block'
The maxlength parameter maxlength stupidly ignored, in spite of maxlength="12" I can enter any number of characters. What is the problem that hinders?
Thanks in advance for your reply)