/    Sign up×
Community /Pin to ProfileBookmark

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[/url]

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]

[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>
[/CODE]

Any help is appreciated…

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzAug 26.2007 — Check out [url=http://www.tyssendesign.com.au/articles/css/legends-of-style/]Legends of style[/url].

By the way, those aren't paragraphs. I suggest you replace those <p>s with <div>s or just remove them since you don't seem to need them anyway.
×

Success!

Help @mikegreenia_com spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...