Not sure where that default 8px of margin on the body comes from? Here's how to find out!
Every browser provides a User Agent (UA) Stylesheet to give HTML elements their natural shape, and make our sites more readable by default. When we start a project with a reset or normalization stylesheet, it's the UA styles that we are re-setting or normalizing. But how can we see these UA styles? Miriam Suzanne will show you how to find them online, inside Firefox itself, or even in developer tools as we debug our site styles.
- Firefox: resource://gre-resources/html.css or hg.mozilla.org...
- Chrome: chromium.googl...
- Webkit: trac.webkit.or...
- More: meiert.com/en/...
#css #miriamsuzanne #firefoxdevtools
Негізгі бет Where do Browser Styles Come From?
Пікірлер: 30