set text input width to percentage