2 ms·
I've been writing sites like this for years. It can look sloppy, but I find that it's important to provide as many "hooks" as possible to elements; especially
by ChrisMarshallNY 7y ago
I've been writing sites like this for years.
It can look sloppy, but I find that it's important to provide as many "hooks" as possible to elements; especially dynamically-generated elements.
This is because I've written tools that were meant to be integrated into sites, as opposed to the end site, itself.
It was important that the user of the tool be able to exert as much control as possible over the rendering.
It does look messy as hell, though. Inspect Element is very helpful. Since a lot of the dynamic code is optimized anyway, or rendered by AJAX, display page source is kinda worthless.
It's all about keeping the specificity as weak as possible, while allowing the CSS to focus on individual elements, or collections of elements.
- ChrisMarshallNY 7y agoAlso, for anyone that cares, I wrote up a series on CSS-based Web design about ten years ago: https://littlegreenviper.com/series/cssdesign/ https://littlegreenviper.com/series/cssdesign/ It's dated, but still absolutely relevant. Here's the start of the specificity section, which goes on for some time: https://littlegreenviper.com/miscellany/stylist/introduction-to-specificity/ https://littlegreenviper.com/miscellany/stylist/introduction...