Forum Moderators: open

Message Too Old, No Replies

input and pre same font

input pre same font

         

FreeBeeNL

3:02 pm on Oct 20, 2004 (gmt 0)

10+ Year Member



How do i get the input field the same width as the pre text.

Imagine I have the following:


<body><pre><form>
Name : <input type="text">
Company : <input type="text">
</form></pre></body>

The size of the text inside the input aint the same as the other text.

Matt Probert

5:04 pm on Oct 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try explicitly defining the type face and size with CSS. It's not nice, it's annoying to readers, but it will *attempt* to force their browser to display the text the same. Of course, they may have their browser set to ignore external style suggestions...