Tech

CSS Finally Gets Inline Conditional Logic With New if() Function

Published

on

[ad_1]

Inline conditional processing is coming to CSS.

Those who have felt boxed in by the web’s universal style sheets’ declarative nature are about to enjoy a bit more freedom to mix it up a bit.

For years, devs and designers have asked in Stack Overflow and elsewhere if CSS had any conditional logic, finding only workarounds as a possibility. Now, the technical committee behind the style standard has ratified a new function for the style sheet, if(), which opens up a whole new world of choice for designers.

“This is the first time, that…

[ad_2]

Source link

Exit mobile version