Styling Fieldsets and Legends in CSS


Improve the visual design of

and

elements for form grouping.

Source Code

fieldset {
    border: 2px solid #ccc;
    padding: 10px;
}
legend {
    padding: 0 5px;
    color: #333;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments