💡 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

Without testing the code below, what color will each box have?

Read my last post if you want to understand the correct answer (you will be surprised!)

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

#CSS #HTML

@css My first thought would that everything would be red. For the last one I'm not completely sure. But I think it should be red.

@kaiserkiwi now test and see if your intuition is correct 😉

Then read the article to clear any confusion.