How to make your Blog Post Image Responsive? - My Blogger Market

Breaking

Post Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

3/29/2015

How to make your Blog Post Image Responsive?

make post image responsive

Blogger latest trend is using responsive template thus it can be fit in any device. But if there are many blog user still using non-responsive template. As a result if non-responsive template open in Smartphone or tablet then images will display larger and some image will go out of the Blog post Body. To solve this issue we should make our Blog post image responsive. Thus image can be resized according to the device resolution. By the help of CSS we can easily make our all Blog image responsive.


In this code I have define the width 100% that means if your Blog post body width is 500px or 700px then image will be same width according to your post body width. And height is always auto, as a result this code will help you to change the image width only not height. And actual height will be display in Blog post. You can see the Demo from below image. 


animated responsive page

Just follow the below steps to make all Blog post image responsive.

Step 1 Log in to your Blogger Account and Go to your Blogger Dashboard

Step 2 Click on Now click on -> Template -> Edit HTML->

Step 3
 Now find the </b:skin> by pressing Ctrl+F (Windows) or CMD+F (Mac)


Step 4 Copy and Paste below code above/before </b:skin>

 
.post-body img {
max-width:100%;
height:auto;
}

Step 5 Now hit the Save template button.

Now check your Blog post in any device and see your all images resizing according to device size. I hope this tutorial will help you to make your Blog post image responsive. Thank you. 

No comments:

Post a Comment

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Note:
1. Make sure to click the "Subscribe By Email" link below the comment to be notified of follow up comments and replies.
2. Please "Do Not Spam" - Spam comments will be deleted immediately upon our review.
3. Please "Do Not Add Links" to the body of your comment as they will not be published.
4. Only "English" comments shall be approved.
5. If you have a problem check first the comments, maybe you will find the solution there.

Post Top Ad

Responsive Ads Here