Styling a fieldset at legend
Moderator: General Moderators
Styling a fieldset at legend
I was just wondering if anybody has found a good way to style fieldsets and legends so that they look a little prettier. Maybe rounded edges for the fieldset... I guess that is the only thing I don't know how to do already... any ideas?
Fieldsets and legends ... well as far as I know you can style them any way you want (position, color, font, etc). Maybe you'll have to deal with some browser quirks here and there, but what's new.
A pretty simple but nice effect for input elements and textareas is setting a background image on them. For example a nice gradient/shadow-ish thing. That really gives your forms a finishing touch.
A pretty simple but nice effect for input elements and textareas is setting a background image on them. For example a nice gradient/shadow-ish thing. That really gives your forms a finishing touch.
As you have a fieldset with in it a legend and both are block level as nickvd pointed out, you can use the technique of setting one large bg image on the fieldset for the bottom left+right corners and the a smaller bg image on the legend for the top left+right corners. Fixed width in that case, But allows the fieldset to scale vertically.