tech/webdev magazine

August 1, 2018

Solved with CSS! Logical Styling Based on the Number of Given Elements

Wednesday, August 01, 2018 Teklinks

Did you know that CSS is Turing complete? Did you know that you can use it to do some pretty serious logical styling? Well you can! You don’t have to set all of your logic-based styling rules in JavaScript, or even have to use JavaScript to set classes you are styling against. In many cases, CSS can handle that itself. I’m still discovering new CSS tricks everyday, and it just makes me love it even more.

Full article