...

View Full Version : forms in div positioned different in FF and IE



aprestong
02-06-2007, 08:36 PM
I have a header section on the top of a page and am able to use relative positioning to put links on the top and the bottom of the header - this works absolutely fine and is positioned exactly where it should be in both firefox and IE -
But, when I try to put a form in the middle between these two, no matter what I try, the spacing gets out of whack. It looks like IE adds space when it sees <form action="login.php" method="post" name="login">
But why??? Why does that line create a space?
baffled - and getting quite upset.

aprestong
02-06-2007, 09:11 PM
form {
margin: 0;
padding: 0;
}

:thumbsup:

Excavator
02-06-2007, 10:47 PM
Absolute positioning corrupts absolutely.
Relative positioning is hardly ever need either...


* {
margin: 0;
padding: 0;
}

Just as a rule of thumb that's a good thing to include in your CSS. The * is a wildcard that includes everything from div's, ul's, img's to p's and hx's.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum