+ 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?
1 Antwort
+ 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