I’ve never really used this technique, but I read about it in a book and gave it a try. The only problem is, in IE the background seems to extend outside of the box. FF, Opera and Safari are fine. Here’s a link:
[url]http://www.mikegreenia.biz/myform.html
Here’s the code:
CSS:
[CODE]
fieldset{
margin: 1em 0;
padding: 1em;
border: 3px solid #ccc;
background: yellow;
width:500px;
}
legend{
font-weight:bold;
}
label{
display:block;
}
input{
width:200px;
}
[CODE]
<fieldset>
<legend>Your Contact Details</legend>
<p>
<label for=”user”>Name:</label>
<input name=”user” id=”user” type=”text” />
</p>
<p>
<label for=”email”>E-Mail Address:</label>
<input name=”email” id=”email” type=”text” />
</p>
<p>
<label for=”url”>Website:</label>
<input name=”url” id=”url” type=”text” />
</p>
</fieldset>
Any help is appreciated…