I've used cascading style sheets for quite some time, but have never seen anything about attribute order. Is there some recommended order in which attributes should be listed within a CSS file?
Announcement
Collapse
No announcement yet.
CSS attributes-order?
Collapse
X
-
Believe it or not, there are over 100 CSS properties. Most are very obscure and rarely used. I've only taken advantage of about 15 of them myself, but normally have only a few for each style. But, no, I don't believe there's an industry standard for listing their order.
Comment
-
When I started using CSS, the tutorials would always differ on the order. It doesn't seem to matter, but it helps me to use the same order for every element and class. When you want to make a change, it's easier to scan your CSS file to find it.
Comment
Comment