-
SitePoint Enthusiast
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;
}
-
Try adding this to your CSS.
form {
margin: 0px;
}
-
SitePoint Enthusiast
Cheers m8.. works like a treat
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks