CSS clipping end of input window

For heaven's sake! Why is the input window disabled on the right? I looked at the padding and fields in chrome and I can't figure out what causes it. I am new to this, but it remains a mystery.

http://jsfiddle.net/GCt3z/1/

+4
source share
5 answers

Because it is 100% + 10px (padding) + 2px (border) wide. Try using:

-webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; 

See the updated Fiddle> http://jsfiddle.net/GCt3z/2/

+7
source

.fieldwrapper has overflow: hidden . You set the label to float, which means that the next div will get the width of the whole wrapper. This will move it to the right of the label with the equal parent character of both tags. You need to set a fixed width for .fieldwrapper .

+1
source

You enter longer than your parent whose overflow is set to hidden.

0
source

Change .fieldwrapper to { overflow: auto;} and you will see that the input is full, that div.

0
source

Try reducing width:100% to width:96% in the .field class, then the problem will be solved.

0
source

Source: https://habr.com/ru/post/1439675/


All Articles