This post is special for Ilyas Kazi.
Adding border line for the images is very easy. You only need simple CSS technique. The basic CSS for this case is,
img {
padding:5px;
margin:5px;
border-width: 5px;
border-color: #0066CC;
border-style: single;
}
Feel free to modify parameters in the CSS code above. There are many different “border-style” parameter. Which one do you like?

The CSS code above will be applied to all of your images in your web pages. To give border line only for the images in your blog posts, you have to read the implementation for both Wordpress and Blogger below.
Wordpress
.post img {
padding:5px;
margin:5px;
border-width: 5px;
border-color: #0066CC;
border-style: single;
}
img.wp-smiley {
background: none;
padding: 0;
margin: 0;
border: 0;
}
Add the code to style.css file in your current wordpress theme directory.
Blogger
.post img {
padding:5px;
margin:5px;
border-width: 5px;
border-color: #0066CC;
border-style: single;
}
Go to Layout - Edit HTML. Add the code to your blogger template (XML) exactly before ]]></b:skin>
If you like this post then please consider subscribing to our MagzNetwork RSS feed. You can also subscribe by email and have our news sent directly to your inbox.

RSS Feed
Email













Need Support at Forum
Print This Post
Email This Post
Save As PDF








July 2nd, 2008 at 3:08 pm
Thank You im sure this post will help me in my new blog http://www.wahgwah.com there is almost 70% post fully loaded with images
July 2nd, 2008 at 5:08 pm
Thank you very much for your Great work!!
August 3rd, 2008 at 8:57 am
Thanks for the post
August 12th, 2008 at 12:40 am
Great post, thaaaaaaaaaanks alot.
http://www.css-edge.blogspot.com