SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: CSS and forms

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2003
    Location
    London
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS and forms

    trying to get text to sit underneath my form but this code always leaves a gap between the text and form... its not working.. any pointers..

    <div id="navBar">
    <div id="navBar_SearchBox">
    <form action="#">
    <input name="searchFor" type="text" size="10">
    <input name="goButton" type="submit" value="go">
    </form>
    </div>
    <div id="navBar_Gen">
    Hello<br>
    Hello<br>
    Hello<br>
    Hello<br>
    Hello<br>
    Hello
    </div>
    </div>


    css*****

    #navBar_SearchBox{
    float: none;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 10px;
    background-color: #CCCCCC;
    }

    #navBar_Gen{
    float: none;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 10px;
    background-color: #eeeeee;
    }

  2. #2
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    United States
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding this to your CSS.

    form {
    margin: 0px;
    }

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2003
    Location
    London
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers m8.. works like a treat


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
  •