Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery Add Border to All Images or CSS Add Border to All Images in Webpage

Sep 11, 2013
Introduction

Here I will explain how to use CSS to add border to all images in webpage or jQuery to add border to all images in webpage.

Description:


To add border to all images in webpage we need to write CSS class like as shown below


<style type="text/css">
img {
background-color: #A3BB43 ;
border: 1px solid #A3BB43 ;
padding: 5px 5px 5px 5px ;
}
</style>
If you want to see it in complete example check below code


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Add Border to All images in webpage</title>
<style type="text/css">
img {
background-color: #A3BB43 ;
border: 1px solid #A3BB43 ;
padding: 5px 5px 5px 5px ;
}
</style>
</head>
<body>
<div>
<img src="AS.jpg" /><br /><br /><br />
<img src="FinalLogo.png" />
</div>
</body>
</html>
Before Add CSS Class Images will be like this



After Add CSS Class Images will be like this



If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

0 comments :

Give your Valuable Comments

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

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.