You are here: Problem with Text Field height in Firefox « HTML « IT news, forums, messages
Problem with Text Field height in Firefox

Posted by somewildmonkey on 08/21/06 04:03

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация