Last Updated: February 25, 2016
·
2.568K
· scotthardman

Use a Table of Contents in your CSS file for an overview

To help collaboration with other people that want to modify your CSS it can be helpful to create a Table of Contents so people can quickly understand the structure of your CSS and find what they need.

/* Table of Contents
   - - - - - - - - -
   Header & Branding
   Forms
   Footer
   - - - - - - - - -
 */
...
/* Header & Branding */
...
/* Forms*/

The headings in the TOC should be perfectly equal to headings you write later. It's a pain to search for headings

1 Response
Add your response

That'd be cool Sublime has one package of this style.

over 1 year ago ·