How would I induce div-like behaviour on the input element? Specifically, how can I induce the width to expand such that its outer width including margin fills up the container? width: 100% doesn’t work, because it doesn’t take into account the other box model attributes.
http://jsfiddle.net/aam7J/ How would I induce div-like behaviour on the input element? Specifically, how can
Share
I use a “hack” to account for the input border width something like this…
My
adjustForTheInputBorderclass tends to have a name which more appropriately conveys my hatred of css though… 🙂P.S.
divrenders asdisplay:blockby default, you don’t need that there.