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
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. |
|||
|
|||
3 comments :
gm sir .dropdownlist me data base se data kaise late hai....pls give me idea.....
sir, how can change the mouse hover colour of asp:button???
thanx by sm
Note: Only a member of this blog may post a comment.