473,387 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Text Field Height issue with Firefox

I'm running Firefox version 1.5.0.6 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
field?

- MB

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>

<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">
</input>

</form>

Aug 21 '06 #1
4 4339
HTML is not an XML language (at least, not until you get to XHTML, which
is HTML's replacement), so you're somewhat off-topic in this forum. Try
an HTML-specific or (probably more productively) a Firefox-specific
discussion?
Aug 21 '06 #2
Sorry about that :-/

Thanks for the info - somehow I read the group name as comp.text.xhtml
Joe Kesselman wrote:
HTML is not an XML language (at least, not until you get to XHTML, which
is HTML's replacement), so you're somewhat off-topic in this forum. Try
an HTML-specific or (probably more productively) a Firefox-specific
discussion?
Aug 21 '06 #3
CSS-related question, so xpost and f'up2
comp.infosystems.www.authoring.stylesheets.

so************@yahoo.com schrieb:
I'm running Firefox version 1.5.0.6 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
field?

- MB

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>

<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">
</input>

</form>
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Aug 21 '06 #4
Johannes Koch wrote:
CSS-related question, so xpost and f'up2
comp.infosystems.www.authoring.stylesheets.

so************@yahoo.com schrieb:
>I'm running Firefox version 1.5.0.6 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
field?

- MB

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>

<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">
</input>

</form>

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Please don't top post.
Aug 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic...
4
by: ioneabu | last post by:
I am trying to do the basic task of setting a text field from the choice made from a select box. I learned how to code it from my O'Reilly Javascript reference which is a few years old. The code...
14
by: jlemay | last post by:
if you look at http://www.emrose.net/contact1.html the last field is a textarea field and I can't make it align with the other text fields. it's pretty close, but this comes from trial and...
1
by: Mark Noten | last post by:
This following HTML page works fine in Firefox 1.5 but not in IE6. Help is appreciated. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta...
3
by: JaRudzik | last post by:
Hello Try to add some blank text field and refresh window in IE it is ok but in firefox input hide_show works wrong , why ? Somebody can help me ? I'm not good in JS beacause I'm PHP coder ...
4
by: sufian | last post by:
Below is the field where user enters his/her email address and the AJAX post request is sent to the server and the user sees the message: echo("<div id=\"message\" class=\"success\">Thank you! You...
3
by: dugald.morrow | last post by:
I have some javascript that updates the text in a text field after certain actions take place such as clicking a checkbox. The javascript works fine in Safari and Firefox, but in IE, the text in...
7
by: kirkgilbert | last post by:
I am trying to do an onchange event in a form using a text field. The form is tied to a record set that is part of a repeated region. One the first record when I edit the data it works perfectly. ...
1
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.