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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unsightly gap above a small form

    I am adding a mailing list form to a new site I am working on.

    Whatever I do, the gap above the form is too large!

    I want the gap to be the same as the gap between the heading and the image, just above it.

    Can anyone help with it?

    The draft page is here...

    http://www.suicidenotesmusic.net/the...tuwebsite.html

  • #2
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    Where is the form? Are you talking about the little email entry? If so, your image right above that is pushing it down.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah i do mean the little email entry form.

    but the image is only 44px high, and the gap below it is quite significant, the box is definitely not close enough (in my opinion)!

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Code:
    <style type="text/css">
    form {
    margin:0;
    padding:0;
    }
    </style>
    Add the above in between your head tags. A form has a default margin in some browsers.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Dec 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, todays browsers read CSS so specifically that you hav to set every variable in order to have it working correctly on all browsers.

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ah cool, didnt know that, thanks a lot all


  •  

    Posting Permissions

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