Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii
i am using one button in that button i am using some css properities.when i try write mouse hover it's not working.

i am using this css properities

C#
.button
{

    display: inline-block;
  *border-left: 0 none #e6e6e6;
    border-right: 0 none #e6e6e6;
    border-top: 0 none #e6e6e6;
    border-bottom: 0 none #b3b3b3;
    display: inline;
    padding: 4px 12px;
    margin-bottom: 0;
  *margin-left: .3em;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 20px;
    color:  #ffffff;
    text-align: center;

    vertical-align: middle;
    cursor: pointer;
     background-color: #0082AA;
  *-webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
    zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}



please share any idea to me.
Posted

try this.. :)


CSS
.button
{
 
    display: inline-block;
  *border-left: 0 none #e6e6e6;
    border-right: 0 none #e6e6e6;
    border-top: 0 none #e6e6e6;
    border-bottom: 0 none #b3b3b3;
    display: inline;
    padding: 4px 12px;
    margin-bottom: 0;
  *margin-left: .3em;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 20px;
    color:  #ffffff;
    text-align: center;
 
    vertical-align: middle;
    cursor: pointer;
     background-color: #0082AA;
  *-webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
    zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button:hover
{

//what would you like ....
}
 
Share this answer
 
Comments
krish2013 25-Mar-14 1:33am    
earlier also i tried that but not working
Nirav Prabtani 25-Mar-14 2:36am    
what is problame??
CSS
.button
{

    display: inline-block;
  *border-left: 0 none #e6e6e6;
    border-right: 0 none #e6e6e6;
    border-top: 0 none #e6e6e6;
    border-bottom: 0 none #b3b3b3;
    display: inline;
    padding: 4px 12px;
    margin-bottom: 0;
  *margin-left: .3em;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 20px;
    color:  #ffffff;
    text-align: center;

    vertical-align: middle;
    cursor: pointer;
     background-color: #0082AA;
  *-webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
    zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button : hover
{
background-color : #e7e7e7
}


See this for more help,
http://www.w3schools.com/cssref/sel_hover.asp[^]
http://designshack.net/articles/css/four-simple-and-fun-css-button-hover-effects-for-beginners/[^]

-KR
 
Share this answer
 
Comments
krish2013 25-Mar-14 1:39am    
hii KR,
I tried this one earlier also.that's not working.
Krunal Rohit 25-Mar-14 9:38am    
What is happening then ??

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900