Recent Posts

How to Add Different Background Color or Image in Each Blogger Post

Saturday, June 13, 2020


How to Change the Background Color of a Blogger Post

Step 1. Log in to your Blogger account, click on your blog and press the 'New Post' button.

new post blogger

Step 2. Once you have finished writing the post, switch to the 'HTML' tab and add the following code just at the beginning and at the end of the post content.
<div style="background-color: #444; color: #fff; padding: 10px;">
Your text goes here...
</div>
apply background color to blogger post

Note:
  • replace the hex value in blue to change the background color and the color value in green with the color of the post's text. You can use this Color Code Generator tool to pick your favorite color.
  • "Your text here...." is where the Post content should go, i.e. between the <div style="..."></div> tags.

How to Add a Background Image in a Blogger Post

If you want to add a background image in a post, add the following code just at the beginning and end of the post content:
<div style="background: url(IMAGE-URL-HERE); background-size: cover; color: #000; padding: 10px;">Your text goes here...
</div>
add background image in a post

Note:
  • paste the URL address of your hosted picture (use Photobucket, Tinypic etc.) where it says IMAGE-URL-HERE
  • the line in red and the </div> tag has to be added at the beginning and at the end of the post's HTML.
  • if the background image is dark, then you will need to change the text color - replace the #000 color value with #fff
  • "Your text here...." annotation tells you where the Post content should go.
Step 3. Now click the 'Publish' button and you are done.

No comments:

Post a Comment