JoeEdward
JoeEdward

Reputation: 41

Expected RBRACE and Unexpected token '}'

I am trying to edit a post's CSS in Wordpress theme editor, however, I get two errors. Here is the code:

#post-6303 {
  .post-content {
    padding: 0 10% 0 10%;
  }
}

The second line gets unexpected RBRACE and the last line gets unexpected '}'

Any ideas?

Upvotes: 4

Views: 14691

Answers (1)

Artem Mirchenko
Artem Mirchenko

Reputation: 2170

It is invalid syntax if you use css without any preprocessors.

There is valid code:

#post-6303 .post-content {
  padding: 0 10% 0 10%;
}

Upvotes: 5

Related Questions