MrJL
11-16-2002, 03:21 AM
Ok, I recently stumbled across this little bit of coding:
<fieldset>
<legend>
This Is A Legend
</legend>
This is 'body' stuff.
</fieldset>
This is valid stuff, so no worries there. :cool: See This Tut (http://www.htmlcodetutorial.com/forms/_FIELDSET.html).
I'm currently using CSS to format my block of code...Here's the appropriate snip from my style sheet:
legend{
font-weight:bold;
padding:3px;
margin-bottom:5px;
background:#FFF77B;
border:2px solid #DE4A00;
}
Now here's where I'm running into my problem...Multiple tutorials state that you move the 'title' (Legend) from left to center to right, depending on <legend align="left/center/right">
However, I am at a loss on how to include this in the style sheet? I've tried a multitude of things, including...
align:center
text-align:center
position:center
legend-align:center
And none of it works. I'd like to include this in the style sheet to avoid having to change the align=xxxxxx on several pages if I want to impliment a change. Any ideas? Any links? I've browsed a ton of pages this evening trying to find a solution, and nothing has worked. Any help would be greatly appreciated. Thanks! :)
Jer!
<fieldset>
<legend>
This Is A Legend
</legend>
This is 'body' stuff.
</fieldset>
This is valid stuff, so no worries there. :cool: See This Tut (http://www.htmlcodetutorial.com/forms/_FIELDSET.html).
I'm currently using CSS to format my block of code...Here's the appropriate snip from my style sheet:
legend{
font-weight:bold;
padding:3px;
margin-bottom:5px;
background:#FFF77B;
border:2px solid #DE4A00;
}
Now here's where I'm running into my problem...Multiple tutorials state that you move the 'title' (Legend) from left to center to right, depending on <legend align="left/center/right">
However, I am at a loss on how to include this in the style sheet? I've tried a multitude of things, including...
align:center
text-align:center
position:center
legend-align:center
And none of it works. I'd like to include this in the style sheet to avoid having to change the align=xxxxxx on several pages if I want to impliment a change. Any ideas? Any links? I've browsed a ton of pages this evening trying to find a solution, and nothing has worked. Any help would be greatly appreciated. Thanks! :)
Jer!