P
P
PO6OT2015-09-27 19:09:57
css
PO6OT, 2015-09-27 19:09:57

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

1 answer(s)
I
IceJOKER, 2015-09-27
@woonem

form {
  width: 100%;
  max-width: 540px;
        /*...*/
}
.input {
  display: block;
  margin: 8px;
  padding: 9px;
  width: 100%;
}
/*100% = 540px, прибавляем еще по 9px padding и получаем = 558px*/

you need to specify the width - width: 522px;for the content form(input, textarea..)
For rubber layout:
.input {
  display: block;
  margin: 8px;
  padding: 9px 2%;
  width: 96%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question