Prevent the fieldset element's border from going through the legend element
I have a fieldset with a border; how can I position its legend inside it? I want the border to go around the legend and not through the middle of it. fieldset { border: 0; padding: 0!important; margin: 0; min-width: 0; border: 1px solid red; } legend { padding: 0!important; } <fieldset> <legend>Title</legend> </fieldset>
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.