Login
From:
CSS Tip: Learn CSS the easy way
(Uncensored)
subscribe
How to correctly use if() in CSS
https://css-tip.com/inline-if/
links
backlinks
Roast topics
Find topics
Find it!
CSS is adding a new way to express conditions using an if() syntax. While it looks easy to use, there is a gotcha you should be aware of. Take the example below: