How to Remove Border Around Pictures in Blogger?
![Remove Border and Shadow Remove Image Border](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS0GggeJ8J5Lf5ej23nKCAiJSU-JM533YHczuSeZmkLVRh9n9F1xYo3DSv2NvCWJn587TN8xF2FL0cP5BU1LKxTnzxWAL0wxuFmx5xYtoQ82VHy2vLdFX3tY_CZ7n5eoKbzGcEy9eSf0Sj/s1600/Remove-Border.jpg)
Remove Border from Image in Single Post
If you want to get rid from the borders and shadow only from a particular image uploaded in the post then follow below steps.
- Upload image in your post.
- Now choose HTML from top left corner.
- Now locate to the image HTML code which will something look like this:
- Now to remove the border simply add a little piece of CSS codestyle="border-style:none;" into the <img> tag as shown below.
![compose html](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDQA4IctPKytmHBzm3uXPIhP2o2pxMmtsYI-h7elJzC81dq88k5u1H8qonBLIYGjDYb_2BJMoByE7CLl9csE9QUpgcjCU7_MD987TyJX6XqZYnDtL-eSobVSf-cHNDv7BtvJ85cjNa7Z38/s1600/compose-html.jpg)
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS0GggeJ8J5Lf5ej23nKCAiJSU-JM533YHczuSeZmkLVRh9n9F1xYo3DSv2NvCWJn587TN8xF2FL0cP5BU1LKxTnzxWAL0wxuFmx5xYtoQ82VHy2vLdFX3tY_CZ7n5eoKbzGcEy9eSf0Sj/s1600/Remove-Border.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS0GggeJ8J5Lf5ej23nKCAiJSU-JM533YHczuSeZmkLVRh9n9F1xYo3DSv2NvCWJn587TN8xF2FL0cP5BU1LKxTnzxWAL0wxuFmx5xYtoQ82VHy2vLdFX3tY_CZ7n5eoKbzGcEy9eSf0Sj/s320/Remove-Border.jpg" /></a>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS0GggeJ8J5Lf5ej23nKCAiJSU-JM533YHczuSeZmkLVRh9n9F1xYo3DSv2NvCWJn587TN8xF2FL0cP5BU1LKxTnzxWAL0wxuFmx5xYtoQ82VHy2vLdFX3tY_CZ7n5eoKbzGcEy9eSf0Sj/s1600/Remove-Border.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img style="border-style:none;" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS0GggeJ8J5Lf5ej23nKCAiJSU-JM533YHczuSeZmkLVRh9n9F1xYo3DSv2NvCWJn587TN8xF2FL0cP5BU1LKxTnzxWAL0wxuFmx5xYtoQ82VHy2vLdFX3tY_CZ7n5eoKbzGcEy9eSf0Sj/s320/Remove-Border.jpg" /></a>
It's all done!
Remove Border and Shadow From All Images
Using this method will remove border from all of your blog posts images and even it will also not appear in your future posts.
- Go to Blogger >> Template.
- First backup your blog template.
- Click Edit HTML.
- Now search below similar code in your template.
- Replace the entire piece of code with the code given below.
- Click on Save Template button.
- You are done!
.post-body img, .post-body .tr-caption-container, .Profile img, .Image img,
.BlogList .item-thumbnail img {
padding: $(image.border.small.size);
background: $(image.background.color);
border: 1px solid $(image.border.color);
-moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
}
.post-body img, .post-body .tr-caption-container, .Profile img, .Image img,
.BlogList .item-thumbnail img {
padding: none !important;
border: none !important;
background: none !important;
-moz-box-shadow: 0px 0px 0px transparent !important;
-webkit-box-shadow: 0px 0px 0px transparent !important;
box-shadow: 0px 0px 0px transparent !important;
}
Remove Border from Dynamic Views Templates
If you are using blogger Dynamic Views template for your blog, then the above code will not work for you. To remove border from dynamic views template follow below steps.
- Go to Blogger >> Template >> Edit HTML.
- Press Ctrl+F and search for
- Now paste below code just above it.
- Click on Save Template button.
]]></b:skin>
.entry-content img{
box-shadow: none !important;
padding: 0px !important;
border: 0px !important;
}
- Also Read: Add Title and Alt Attribute To Optimize Images For SEO
0 commentaires:
Enregistrer un commentaire