4 ms·
So we compensate for a lack of CSS libraries by mixing presentation layer with content layer. Nice.
by mirkules 14y ago
So we compensate for a lack of CSS libraries by mixing presentation layer with content layer. Nice.
- eps 14y agoYou brought up the maintenance angle, and the response to that is that in some cases it's far more practical to use js for atyling than to rely purely on css. I gave an example below - a sticky page footer - do show me how to do it in the confines of your abstraction model. Abstarting things for the sake of abstracting is a rather naive approach. It's a good starting point, but some abstractions complicate things way beyond what's needed.
- mirkules 14y agoWhile I agree that exceptions in very rare cases are needed, exceptions are becoming the norm and, like I said, are coupling functionality and content. This is why CSS was created, to decouple style from content, and now? We are are throwing all that work away because an entire generation of web devs are just too lazy to look it up. By the way, a quick search for sticky page footer on Google turned up this as the first result -- no JS needed, and it didn't even look that hard (http://www.cssstickyfooter.com/using-sticky-footer-code.html http://www.cssstickyfooter.com/using-sticky-footer-code.html).
- huhtenberg 14y agoAll CSS solutions, including yours, require vertical margins on all page elements to be 0px, which is clearly an obscure and senseless restriction.