forms - CSS Input with width: 100% goes outside parent's bound - Stack Overflow

PHOTO EMBED

Thu Jan 11 2024 16:59:31 GMT+0000 (Coordinated Universal Time)

Saved by @ClairLalune #javascript

input[type=text],
input[type=password] {
    ...
    width: calc(100% - 20px);
}
content_copyCOPY

https://stackoverflow.com/questions/16907518/css-input-with-width-100-goes-outside-parents-bound