Parse error in css

Discussion in 'CSS' started by charlyanderson, Nov 10, 2012.

  1. #1
    The error is: Parse Error section#content {background:#fff; .inner {margin-top:-10px; padding:20px; a {.green;} }}


    Im only now getting used to using parses so can someone tell me whats wrong here. Thanks :)
     
    charlyanderson, Nov 10, 2012 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    You can't put properties inside each-other that way. You can't put .inner inside #content, and the a {.green} part is just outright 100% gibberish.

    As to what it should be, without seeing the markup it's being applied to and the rest of the CSS, we can't help you.
     
    deathshadow, Nov 11, 2012 IP