1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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