This article helps to understand how CSS is changed automatically when a button is disabled from the server side. Further, how to define CSS when a user hovers over an element.Step 1: Define CSS for buttonDefine two css (i.e. one for hover and another normal) for each button.Button1: Which will enable 3rd button
{
background-image: url("Images/bulbEnable.png");
background-repeat: no-repeat;
background-position: top right;
background-color: transparent;
cursor: pointer;
border: solid 0px #ff0000;
height: 48px;
width: 48px;
outline-width: 0px; }
.CButton[disabled]
background: url("Images/bulbDisable.png");
width: 48px; }
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: