Should i be placing a space

Discussion in 'CSS' started by pipes, Mar 12, 2008.

  1. #1
    When writing CSS, sound i be putting a space before the curly bracket?

    Or is the following ok?


    body{
    margin: 0;
    font-family: Arial, Helvetica, Georgia, Sans-serif;
    font-size: 12px;
    text-align: center;
    vertical-align: top;
    background: #FFCCCC;
    color: #000000;
    }
     
    pipes, Mar 12, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Either is fine. I find a space makes readability a bit easier. YMMV.

    cheers,

    gary
     
    kk5st, Mar 12, 2008 IP
    pipes likes this.
  3. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Thanks Gary, true, the space helps that way, il do it with the space.
     
    pipes, Mar 12, 2008 IP