Friday, August 21, 2020

How to make your Blog Post Image Responsive

How to make your Blog 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. Just follow the below steps to make all Blog post image responsive. Step 1Log in to yourBlogger Accountand Go to yourBlogger Dashboard Step 2Click on Now click on-Template-Edit HTML- Step 3Now find the/b:skinby pressing Ctrl+F (Windows) or CMD+F (Mac) Step 4Copy and Paste below code above/before/b:skin .post-body img { max-width:100%; height:auto; } Step 5Now hit theSavetemplatebutton. 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

Note: Only a member of this blog may post a comment.