Jump to content

Help with <fieldset> formatting


doucie

Recommended Posts

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??

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.