Display: a block that does not expand the input to fill the parent width

How do I get input to expand to the full width of the parent div? For the shortcut, it worked fine. The code can be found here: http://jsfiddle.net/7h8Zg/

What makes a shortcut extensible but not input?

+3
source share
3 answers

If you want the inputs to be the same size as the button submit, you must add width:97%to the rule input.

http://jsfiddle.net/7h8Zg/15/

+2
source

change the left padding to a percentage and use the rest for the width, for example:

padding:0 0 0 2%;width:98%;
+3
source

width: 100%;

div.

JSFiddle: http://jsfiddle.net/7h8Zg/5/

-1

All Articles