[ANSWERED] Does the order of properies matter when using shorthand properties? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

[ANSWERED] Does the order of properies matter when using shorthand properties?

And if it does, does it matter in all shorthand properties?

14th Nov 2021, 4:32 PM
Hecker
Hecker - avatar
2 Réponses
+ 2
It depends of css style, for margin is important, but for border is not. I suggest you to always write in same way as everyone because this make code easier to maintain, if you work with others. Check this for more info www.hongkiat.com/blog/css-shorthand-longhand-notations/amp/
14th Nov 2021, 6:58 PM
PanicS
PanicS - avatar
0
What do you mean by shorthand properties. Could you give an example?
14th Nov 2021, 5:47 PM
John Doe