When newbie blogger start their blog, they don’t care too much
about their blog design and look like images uploaded in the blog posts
comes with a default border and shadow around it which looks very nasty.
But as they start learning blogging they feel that they should remove
the border around the images to make blog posts more attractive and
professional. In one of my previous published posts I have discussed 6
Tips to optimize images for SEO to gain traffic from search engines and
today we will discuss about how to remove border and shadow around the
images in blogger. So, let start the tutorial.
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 code style=”border-style:none;” into the tag as shown below.
style=”border-style:none;” border=”0″ src=”http://img.bloggertipstricks.com/uploads/2013/04/Remove-Border1.jpg” />
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.
]]>
.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
Need Help?
These were all the ways to remove border and shadow around
images in blogger posts. If you have any doubt or query then leave a
comment below and I will surely reply you to solve your queries. Happy
Blogging!
Post a Comment