The code we code is often not standardized enough. Although this site has provided a lot of ideas and experience before, it still cannot change the phenomenon of messy code. Today I will introduce to you a powerful tool for reorganizing CSS code - Styleneat.
Styleneat can reorganize CSS selectors, sub-selectors and properties into a hierarchical structure, making it easier for programmers to define page areas and view the relationships between them. Styleneat is a free service that helps you reorganize your CSS properties.
Styleneat For example, it will convert the following CSS code
Example Source Code
[www.downcodes.com] id1 { width: 100px; }
id1 .class1 { background: #000; }
id1 .class1 a { text-decoration: none; color: #fff; }
id1 .class1 a span { text-indent: 10px; }
id2 { width: 200px; }
Reorganized into:
Example Source Code
[www.downcodes.com] id1 { width: 100px; }
id1 .class1 { background: #000; }
id1 .class1 a { color: #fff; text-decoration: none; }
id1 .class1 a span { text-indent: 10px; }
id2 { width: 200px; }
Styleneat provides three ways to use:
Example Source Code
[www.downcodes.com] 1. Paste the CSS code directly.
2. Upload a CSS file.
3. Provide the URL address of the CSS file.
In addition, Styleneat also provides some options, such as alphabetical order according to CSS selection, single-line format or multi-line format, etc. Styleneat still provides a lot of help in CSS optimization.
http://styleneat.com/