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

CSS - Change Button Color on Mouseover in Asp.net

Jan 28, 2014
Introduction:

Here I will explain how to change button color on mouseover using css in asp.net.
Description:

In previous articles I explained jQuery add border to all images using css, jQuery Show testimonials with CSS, jQuery change default text selection color with css and many articles relating to css, jQuery, JavaScript, Asp.net, SQL server. Now I will explain how to change button color on mouseover using css in asp.net.

To change button color on mouseover we need to write the code like as shown below


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Change Button Color on Hover</title>
<style type="text/css">
.buttonclass
{
padding-left: 10px;
font-weight: bold;
}
.buttonclass:hover
{
color: white;
background-color:Orange;
}
</style>
</head>
<body>
<form id="form1">
<div >
<input type="button" id="btnclick" value="Show Password" class="buttonclass"/>
</div>
</form>
</body>
</html>
Once we run above query we will get output like as shown below

Live Demo





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

3 comments :

Unknown said...

gm sir .dropdownlist me data base se data kaise late hai....pls give me idea.....

Anonymous said...

sir, how can change the mouse hover colour of asp:button???

Anonymous said...

thanx by sm

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.