Is there a correct order to put your CSS properties in? I've never been told to put my properties in a certain order. I guess it's personal preference?
Server side languages have various standards you can code to. Are there standards for CSS?
I tend to do:
.element
{
/* display: */
/* position:, top:, right:, bottom:, left: */
/* width:, height: */
/* margin:, padding: */
/* color:, font: */
/* background: */
/* border:, border:radius: */
/* z-index: */
}
Though there is no standard around it. And probably that's how a declarative DSL should be.
The following links might give you an idea on how you can form a standard for your domain
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With