+ 3

Was wondering if their is an etiquette on the order of things following a declaration?

for example: p { font-size: ..... font-family:....... font-weight:....... color:........... height:........ width:.......... background-image:.... } and so on.. would it matter the order of these and other css properties? Or is it just how the person feels like doing it?

15th Sep 2017, 10:11 PM
Andrew Knoeller
Andrew Knoeller - avatar
2 Answers
+ 11
order will matter if you use the same attribute the last one will override the one before it div{ color:red; color:green; } green will be the one that applied
15th Sep 2017, 10:13 PM
Burey
Burey - avatar