Can the size of input fields be set to percent values?

css, html, input

Solution

Try this

<input type="text" id="url" NAME="otherSite" style="width:70%" value=""/>

Problem

I am unable to create an input field which covers 80% of the width of the browser window while being centered. ``` <input style="margin-right:10%; margin-left:10%;" size="100%"> ``` only works when the browser is maximized.

Original source