Reputation: 41
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
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