Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    110
    Thanks
    1
    Thanked 0 Times in 0 Posts

    forms in div positioned different in FF and IE

    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.

  • #2
    Regular Coder
    Join Date
    Jul 2006
    Posts
    110
    Thanks
    1
    Thanked 0 Times in 0 Posts

    solved

    Code:
    form {
      margin: 0;
      padding: 0; 
    }
    Last edited by aprestong; 02-06-2007 at 09:16 PM.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,678
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Absolute positioning corrupts absolutely.
    Relative positioning is hardly ever need either...

    Code:
    * {
    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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •