Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expected RBRACE and Unexpected token '}'

Tags:

css

wordpress

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?

like image 345
JoeEdward Avatar asked Nov 02 '25 02:11

JoeEdward


1 Answers

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

There is valid code:

#post-6303 .post-content {
  padding: 0 10% 0 10%;
}
like image 83
Artem Mirchenko Avatar answered Nov 04 '25 13:11

Artem Mirchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!