Formatting CSS

 I have started putting braces on newlines in CSS.


For example:


    .c1,

    .c2

    {

        color: blue;

    }


This makes adding another class at the end of the list a little easier.


I suppose I could even write:


      .c1

    , .c2

    {

        color: blue;

    }


One project I worked on when I was younger formatted SQL like this:


    SELECT a

         , b

      FROM t

         , t2




Comments

Popular posts from this blog

Violating Flickr's terms of service

How a CSS fish animation works

Starting to use a CSS minifier