3 ms·
It makes sense as HTML was a document format. Document: thing you print, in this case on 90s printers. You need a margin! The genius is you get a reasonable re
by quickthrower2 4y ago
It makes sense as HTML was a document format. Document: thing you print, in this case on 90s printers. You need a margin!
The genius is you get a reasonable reading experience out of the box with default styles.
Noone wants their first character kissing the browser window frame.
I am betting what is old is new and 8px borders will come back in fashion.
- IfOnlyYouKnew 4y ago"A thing you print" just isn't the definition of a document.
- dgb23 4y agoWe obviously put margins on stuff, but never at the body element for many reasons. Padding would be better for example. The margin only makes sense if you don’t apply any further styling.
- asojfdowgh 4y agoMargins collapse if you have h1 with top margin 10px, and body margin 8px, it "adds" up to 10px, not 18px. Once you write article-based sites, without a random navbar that people don't want, then it can become quite nice