'How to change background color in perticular blogger post not for all posts?

I am trying to change background color of perticular blogger post but when I applied many tricks, many errors came in css.



Solution 1:[1]

You can use the Blogger conditional tag for the post url and give the css styles you wish:

<b:if cond='data:blog.url == &quot;URL_OF_YOUR_BLOG_POST&quot;'>

/* PLACE YOUR CSS CODE HERE - EXAMPLE FOR BODY BACKGROUND COLOR YELLOW: */
 body {
   background: #ff0;
 }

</b:if>

More info: https://ultimatebloggerguide.blogspot.com/2016/07/blogger-conditional-tags-for-page-types.html

Solution 2:[2]

You need to reference the One Post by id to apply the CSS rule only to the particular post.

You may also reference the post by its position and class name.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Osvaldo Correia
Solution 2