-
-
Save ultrox/84935bf1ce4fc938f61c2142b9a9c1f2 to your computer and use it in GitHub Desktop.
Reset fieldset and legend styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* From http://thatemil.com/blog/2015/01/03/reset-your-fieldset/ by Emil Björklund */ | |
legend { | |
display: table; | |
padding: 0; | |
} | |
fieldset { | |
border: 0; | |
margin: 0; | |
min-width: 0; | |
padding: 0.01em 0 0 0; | |
} | |
body:not(:-moz-handler-blocked) fieldset { | |
display: table-cell; | |
} |
I didn't. Forgot all about this though.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Did you continue the investigation of normalizing (reset original styles) of the fieldset/legend?

In my attempts in my CodePen I saw that the legend element is very resistant to cleaning processes :-). How we can observe the styles that is affecting this element?
CodePen: https://codepen.io/jorgefernandes/pen/jOgQqYy