3 ms·
What would sane defaults for css be?
by infogulch 5y ago
What would sane defaults for css be?
- dnautics 5y agoMaybe I spoke too soon -- Thinking back (and I could be wrong about this) but the "top" of the style sheet cascade is supposed to be defined by the browser? So I guess it's the browers' responsibility? I guess the point I was trying to make is that if you just type only non-layout LaTeX it looks reasonably good, yeah, it does format it with super-wide margins (shrug), but if you do that with html you get mouth spiders.
- dredmorbius 5y agoI'd like to see something far closer to my "Motherfucking Website" variant: https://codepen.io/dredmorbius/full/KpMqqB https://codepen.io/dredmorbius/full/KpMqqB There are a few bits of that I'd fiddle with, but the idea of defining margins and avoiding text that runs flush to gutters, as well as defining most of the whitespace in rem & em units rather than pixels or points, is a big part of it. Another alternative would be a stock set of document types for which users could choose from predefined styles. The document would specify the doctype, the user the styling. That could include various branding or simiilar components, but they'd be reasonably minimal. The ever-encroaching headers, footers, sidebars, floating interstitials, etc., of the modern web really need to go DIAF.