Results 1 to 2 of 2

Thread: <form></form> adds line(s) below

  1. #1
    Join Date
    Aug 2010
    Location
    Jacksonville, FL
    Posts
    85
    Thanks
    31
    Thanked 0 Times in 0 Posts

    Default <form></form> adds line(s) below

    Hello,

    Is there a way to keep the <form> from adding a line below?

    Thanks for your help, Elbee

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Elbee,

    IE6 and IE7 appear to give the form element a default 20px top and bottom margin.
    The other browsers that I tested - ( Firefox, Opera, Safari and IE8 ) - do not.

    You may find it helpful to set all elements' default margin and padding values to zero in your style sheet by adding this...
    Code:
    
    * {
        padding:0;
        margin:0;
     }
    
    ...and then adding your own values when required.
    Otherwise just add this...
    Code:
    
    form {
        margin:0;
     }
    
    coothead

  3. The Following User Says Thank You to coothead For This Useful Post:

    Elbee (09-02-2010)

Bookmarks

Posting Permissions

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