Answer the question
In order to leave comments, you need to log in
Why does the form block go beyond the page, and the input behind the form?
Why does the form block pop out of the page, while the input pops out of the form (form pops out of the page when the page's width is less than its max-width)?
How to fix?
box-sizing: border-box doesn't help
Site - fixpc.tk , form below, see F12, otherwise the form has no frame
Answer the question
In order to leave comments, you need to log in
form {
width: 100%;
max-width: 540px;
/*...*/
}
.input {
display: block;
margin: 8px;
padding: 9px;
width: 100%;
}
/*100% = 540px, прибавляем еще по 9px padding и получаем = 558px*/
width: 522px;
for the content form(input, textarea..) .input {
display: block;
margin: 8px;
padding: 9px 2%;
width: 96%;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question