The following HTML:
Most browsers respect max-width, but INPUT and TEXTAREA elements typically have a width set by default in the user agent CSS. You can add this CSS for a consistent rendering:
max-width
INPUT
TEXTAREA
input,textarea{width:100%;display:block}