Just a notice about css's value order

hello everyone

i hope that everything is going fine with all of you

i just notice that there are no order for the property value in the css so for example
border : solid red 5px;
is same as
border: 5px red solid;
or any other arrangement
am i right or i miss something ?

thanks in advance and have a nice day everyone

1 Like

@justsomeone hi there!

In cases like this, where the sub-values inside the property value are distinct and can’t be confused with one another, there is no required order. Saying that, you should probably choose one and stick to it (you tend to see length style color most commonly), so your code is easier to parse and share.

There are some shorthand cases where the order of sub-values matters, but we tend to provide details on these property’s reference pages. For example:

Hi @chrisdavidmills

thanks a lot for the clarification

have a nice day