Web Hosting Talk







View Full Version : Simple HTML in IE question


wonker
07-21-2006, 04:15 AM
Hello everyone,
I am in the process of coding a webpage but I have got a problem in IE. I've done the whole page in CSS and everythinig works just fine so long as I do not add a form...

Here is the code :

<div class="mem_middle"><form name="form1" method="post" action="">Member number :<input name="user" type="text" class="form1" value="M00000" size="20" maxlength="20"><br>
Password:
<input name="pass" type="password" class="form1" size="20" maxlength="20"><br><br>
<input name="image" type="image" class="form1" value="submit" src="images/envoyer.gif" alt="Go" />
</form></div>

Here is the problem :

IE seems to add blank space virtically (like <BR> or <p> does 1...>) just after the Go button... but firefox does not.

How can I get arround this am I the only one who has this problem?

ergo
07-21-2006, 04:45 AM
add a style to it like style="margin:0px, padding:0px" it should help

maxymizer
07-21-2006, 05:45 AM
It's an old bug, if margins as ergo proposed won't work, just try to have that entire html snippet in one line (no newlines).

redihot.com
07-21-2006, 06:38 AM
To sort this problem open your css file, then type the following in:


form {
padding:0px;
margin:0px;
}


Hope that Helps

wonker
07-21-2006, 09:02 AM
thanks !! It works great now !