Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A Modern CSS Reset (joshwcomeau.com)
18 points by feross on Nov 24, 2021 | hide | past | favorite | 1 comment


I'd recommend defining box-sizing: border-box for html element and then applying box-sizing: inherit for *, *::before and *::after selectors. This makes it easier to override the box-sizing for 3rd party components that might rely on the default model.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: