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.
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.