SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Non-Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Stopping FORM br's

    Is it possible to prevent <FORM> tags from acting like <P> or <BR> tags too? With IE, FORMs are preceeded and followed by blank lines, affecting layout.

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is untested but might solve your problem:

    HTML Code:
    <form style="padding:0;margin:0;">
    Hope this helps

    -Sam
    Sam Hastings

  3. #3
    SitePoint Addict
    Join Date
    Mar 2003
    Location
    UK
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or you could put

    form
    {
    margin-bottom: 0px;
    margin-top: 0px;
    }

    in the CSS file.

    p.s. How do you do that 'HTML Code' UBB efect?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by mediaman_12

    p.s. How do you do that 'HTML Code' UBB efect?
    Off Topic:

    Use the [html] tags

  5. #5
    Non-Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "margin"/"margin-*" seems to do the trick

  6. #6
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want it truly inline, you should use:

    HTML Code:
    <form style="margin:0; padding:0; display:inline;">
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


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
  •