Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Problem with Text Field height in Firefox

Thread Tools

Problem with Text Field height in Firefox
Posts: n/a
I'm running Firefox version and when I load an html file
containing the code shown below, although both the text field and the
button are defined as 24 pixels in height, the text field is displayed
30 pixels tall. In Internet Explorer they display as specified.

Any ideas why Firefox is adding 6 pixels to the height of the text

- MB

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="">

<input type="text" size="10" id="form1:textField1"
name="form1:textField1" class="TxtFld" style=" height: 24px; left:
20px; top: 80px; position: absolute; width: 220px" value="" />

<input id="form1:button1" name="form1:button1" class="Btn2"
style="height: 24px; left: 250px; top: 80px; position: absolute; width:
70px" type="submit" value="Search">


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript validation for a not required field, field is onlyrequired if another field has a value jr Javascript 3 07-08-2010 10:33 AM
measuring web controls height at runtime (or converting .height % to px) Wotney ASP .Net 1 10-25-2006 01:39 PM
1.Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Sound Javascript 2 09-28-2006 02:43 PM
Text Field Height issue with Firefox XML 4 08-21-2006 04:21 PM
how to get specific cell height without hard-coding a height value HTML 0 08-19-2006 08:13 PM