View Full Version : firefox webform problem

05-28-2007, 06:59 PM

Anyone can explain me why following code

<table cellPadding="4" align="center">
<tr bgcolor="#699999">
<td >
<form method="POST" action="TEST.PHP" >
<input type="submit" value="BUTTON" name="stop">

on ie7 works fine showing this
http://www.uploadtr.net/thumbs/561028ie7.jpg (http://www.uploadtr.net/viewer.php?id=561028ie7.jpg)

while on firefox shows this ?
http://www.uploadtr.net/thumbs/81533firefox.jpg (http://www.uploadtr.net/viewer.php?id=81533firefox.jpg)


05-28-2007, 08:04 PM
Anyone can explain me why following code on ie7 works fine showing this [...] while on firefox shows this? [...]
The gap is due to the forms margin. You can eliminate it using

form {
margin: 0;

The rules in Firefox for when a form has a top/bottom margin are a bit complicated. But they only have a margin in Firefox's quirks mode.

So I suspect that you haven't specified a document type. Maybe this one is the right one for you to use:


As a side issue, you have a nesting error. You need to put your closing form tag before the closing td tag. Without the nesting error you would have had the same gap in IE.

Run your code through the validator. It will catch such errors.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum