2 ms·
I don't write margin:0; but use margin: 0; The reason is because of shorthand: margin: 20px auto 10px; === works | margin:20pxauto10px; === fails Therefore, p
by talmand 15y ago
I don't write margin:0; but use margin: 0;
The reason is because of shorthand: margin: 20px auto 10px; === works | margin:20pxauto10px; === fails
Therefore, putting the space after the colon is pure habit for spacing reasons.
Yes, I understand that margin:20px auto 50px; works. It's just habit and preference.