Dudes.
Sometimes you want your to fit its “parent” with dynamic
width
and you do it like this:
type="text" style="width: 100%">
But, that “parent” could be smaller then 150px
(which is ‘s default min-width) and your
goes beyond the borders.
The solution is simple — just add size="1"
like this:
type="text" size="1" style="width: 100%">
That’s all!