Forum Moderators: open

Message Too Old, No Replies

Text Area/Text Input Inconsistent

         

almo136

5:46 pm on Feb 16, 2009 (gmt 0)

10+ Year Member



Hi I have a text area with a width of 260 and a text input with a width of 260.

The firefox the text input appears wide than the text area. In ie they both appear the same.

To get it to look consistent in ff i need to make the text area 264.

Any ideas?

rocknbil

6:35 pm on Feb 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm presuming you mean the size/cols attributes? This is because of the difference in the way the character widths are defined between the two. Try styling the elements:

.wide-field { width: 500px; } /* or ems, or % */

<input type="text" class="wide-field">
<textarea class="wide-field"></textarea>

almo136

8:59 pm on Feb 16, 2009 (gmt 0)

10+ Year Member



Hi,

No, I'm using the width attributes in my css and not column widths so can't see why it's not working.