doucie Posted June 30, 2007 Share Posted June 30, 2007 I have this <fieldset> <legend>Please Log In</legend> <form action="home.php" method="POST" /> Username:<input type="text" name="username"/> Password:<input type="password" name="password"/> Email:<input type="text" name="email"/> <input type="submit" value="Login" /> </form> </fieldset> and this fieldset { font-family: Monaco, Verdana, Sans-serif; font-size: 12px; background-color: #f9f9f9; border: 1px solid #D0D0D0; color: #666666; margin: 14px 0px 14px 0; padding: 10px 10px 10px 10px; } but for some reason the background colour overlaps the border at the top of the fieldset by about 15pixels. Any ideas how to keep the background within the border?? Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted June 30, 2007 Share Posted June 30, 2007 fieldset and legend should be inside the form Quote Link to comment Share on other sites More sharing options...
doucie Posted June 30, 2007 Author Share Posted June 30, 2007 Changed to this, same problem! <form action="home.php" method="POST" /> <fieldset> <legend>Please Log In</legend> Username:<input type="text" name="username"/> Password:<input type="password" name="password"/> Email:<input type="text" name="email"/> <input type="submit" value="Login" /> </fieldset> </form> Quote Link to comment Share on other sites More sharing options...
doucie Posted June 30, 2007 Author Share Posted June 30, 2007 Ah, this is an Internet Explorer glitch, found a fix here http://www.themaninblue.com/experiment/InForm/fieldset.htm Thanks jcombs_31 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.