-
Is there a common practice of the css properties order? for example, display comes first, then width/height, and then margin/padding, etc?
-
When to use class, when to use id?
In my concept, id is use when the element is unique, for example #card in this challenge. But when I studied the html code of other pages, I found that they may also use class to describe unique element. So when to use class, when to use id?