CSSプロパティの記述順序に、厳格なルールはありません。 ですが、ある程度ガイドラインを決めておいた方が、共有やメンテナンスがしやすくなります。 今日は、私が日々のタスクで使用している、ガイドライン(※CSS3は除く)を紹介しますので、ご参考ください。 参照ガイドライン1:mozilla.org Base Styles 有名なCSSコーディングガイドライン「mozilla.org Base Styles」に示されている、プロパティ記述順は以下のとおりです。 display list-style position float clear width height margin padding border background color font text-decoration text-align vertical-align white-space other text content
![プロパティの記述順序:CSSコーディングガイドライン](https://cdn-ak-scissors.b.st-hatena.com/image/square/80b5f2d6a5df927c041acc5cc0983af83ce59cb2/height=288;version=1;width=512/https%3A%2F%2Fworpre-lab.com%2Fwp-content%2Fuploads%2Fcss_property.jpg)