CSS Brace Styles

Posted by Nimbuz on Stack Overflow See other posts from Stack Overflow or by Nimbuz
Published on 2010-05-30T10:02:10Z Indexed on 2010/05/30 10:12 UTC
Read the original article Hit count: 157

I'm unable to figure how the standard (or just popular) brace style names apply to CSS. Here're all the brace styles:

/* one - pico? */
selector { property: value; 
           property: value; }

/* two */
selector { 
    property: value; /* declaration starts on newline */
    property: value; }

/* three */    
selector 
{ property: value;
  property: value;
}

/* four - Allman or GNU?*/
selector 
{ 
    property: value; /* declaration starts on newline */
    property: value;
}?

/* five */
selector { property: value;
           property: value;
}

/* six - horstmann? */
selector { 
    property: value; /* declaration starts on newline */
    property: value;
}

/* seven - banner?*/
selector { property: value;
           property: value;
         }

/* eight */
selector {
    property: value; /* declaration starts on newline */
    property: value;
    }

Can someone please name each brace style for me?

Many thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about best-practices