💡 CSS Tip!

Ready to start using style queries and if()? Which of the following syntaxes do you think is the correct one? Spoiler: Both of them are valid!

https://css-tip.com/if-trick/

Learn the difference between them and when to use each one. It's the key to correctly using these features.

#CSS #HTML

@css Oh, that's an important distinction. Makes perfect sense once you understand it (= for mathematical comparisons, : for CSS values), but it would definitely trip someone up when trying to adapt a demo!

@AmeliaBR but I am afraid most will be using the ":" notation as it's the one used to introduce the feature (and has a better support) and we already have a ton of demos already online so it would be hard to reverse the trend.

I will try to push the "=" syntax as much as I can 😅