![Twitter’s div Soup and Uglyfied CSS, Explained](https://www.cdn5.niftycent.com/d/e/5/0/A/O/4/twitter-s-div-soup-and-uglyfied-css-explained.webp)
When I came up in web development (2005-2010 were formative years for me), one of the first lessons I learned was to have a clean foundation of HTML. “What Beautiful HTML Code Looks Like” is actually one of the most …
The post Twitter’s div Soup and Uglyfied CSS, Explained appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
![How to Implement Logging in a Node.js Application With Pino-logger](https://www.cdn5.niftycent.com/d/1/x/j/z/x/O/how-to-implement-logging-in-a-node-js-application-with-pino-logger.webp)
Logging, on its own, is a key aspect of any application. Logging helps developers comprehend what it is that their code is doing. It also helps save developers hours of debugging work. This tutorial is about implementing logging in a …
The post How to Implement Logging in a Node.js Application With Pino-logger appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/how-to-implement-logging-in-a-node-js-application-with-pino-logger/
![Proposal for CSS @when](https://www.cdn5.niftycent.com/d/k/8/q/4/y/p/proposal-for-css-atwhen.webp)
CSS is on a tear lately. Again, I’ve heard of a brand new thing I’ve never seen before, and again it’s via Miriam: CSS Conditionals.
🎉 CSSWG just resolved to adopt @tabatkins when/else proposal into the next level of CSS
…
The post Proposal for CSS @when appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
![Cascade Layers?](https://www.cdn5.niftycent.com/d/e/7/X/N/7/L/cascade-layers.webp)
There is a new thing coming in CSS: @layer. As with all new things, it takes time to really wrap your head around it. And despite me tapping at my keyboard about it, full disclosure, I’m not sure my …
The post Cascade Layers? appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
![An Event Apart Full Summit! (Use Coupon AEACSST21)](https://www.cdn5.niftycent.com/d/D/3/x/V/x/6/an-event-apart-full-summit-use-coupon-aeacsst21.webp)
(This is a sponsored post.) The web’s premier conference is online this fall, October 11–13, 2021: An Event Apart Full Summit. If you already know how good of a conference this is (i.e. that some of the web’s biggest …
The post An Event Apart Full Summit! (Use Coupon AEACSST21) appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
![7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS](https://www.cdn5.niftycent.com/d/1/R/x/l/x/Y/7-practical-uses-for-the-before-and-after-pseudo-elements-in-css.webp)
CSS ::before and ::after pseudo-elements allow you to insert “content” before and after any non-replaced element (e.g. they work on a but not an ). This effectively allows you to show something on a web page that might …
The post 7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/7-practical-uses-for-the-before-and-after-pseudo-elements-in-css/
![Resources aren’t requested by CSS, but by the DOM](https://www.cdn5.niftycent.com/d/k/8/q/B/0/J/resources-aren-t-requested-by-css-but-by-the-dom.webp)
This is a good tweet from Harry:
Simple yet significant thing all developers should keep in mind: CSS resources (fonts, background images) are not requested by your CSS, but by the DOM node that needs them [Note: slight oversimplification, but
…
The post Resources aren’t requested by CSS, but by the DOM appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/resources-arent-requested-by-css-but-by-the-dom/
It’s not every day you see a new processor for building websites that reinvents the syntax for HTML and CSS and JavaScript. That’s what imba is doing. That’s an awful lot of vendor lock-in, but I guess if you get …
The post imba appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
![Embracing Asymmetrical Design](https://www.cdn5.niftycent.com/d/1/V/P/r/r/E/embracing-asymmetrical-design.webp)
I’ll never forget one of Karen McGrane’s great lessons to the world: truncation is not a content strategy. The idea is that just clipping off text programmatically is a sledgehammer, and avoids the kind of real thinking and planning that …
The post Embracing Asymmetrical Design appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
![Exploring the CSS Paint API: Polygon Border](https://www.cdn5.niftycent.com/d/e/5/0/L/q/0/exploring-the-css-paint-api-polygon-border.webp)
Nowadays, creating complex shapes is an easy task using clip-path, but adding a border to the shapes is always a pain. There is no robust CSS solution and we always need to produce specific “hacky” code for each particular …
The post Exploring the CSS Paint API: Polygon Border appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/exploring-the-css-paint-api-polygon-border/