html - ASP.NET Button Text Showing Incorrectly with :Disabled psuedoclass -


i have asp.net webforms page has several controls on it, including several different sized asp.net buttons. there times when need disable button or buttons on page, able without issue, issue when disable them, text on button appears have carriage return in text, making text appear lower on button when button enabled. (please see image below...edit, apparently don't have enough points post image.)

the image wanted post shows text of disabled button aligned @ bottom half bottom half of word missing text of enabled button showing correctly.

here css code using.

.big, .medium, .med-big, .small, .smaller{     display: inline;     text-align: center;     vertical-align:top;     font-family: 'oswald',sans-serif;     /*text-shadow: 0 1px 0 rgba(109, 5, 5, 0.8);*/     color:black;     border-radius: 10px;     -webkit-border-radius: 10px;     -moz-border-radius: 10px;   }  .big:active, .medium:active, .small:active, .med-bid:active, .smaller:active{     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;     -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;     -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.4) inset;     outline: 0 none;  }  .big:disabled, .medium:disabled, .med-big:disabled, .small:disabled, .smaller:disabled{     display: inline;     text-align:center;     vertical-align:top;     font-family: 'oswald',sans-serif;     color:grey;     border-radius: 10px;     -webkit-border-radius: 10px;     -moz-border-radius: 10px;     background-color:#cccccc  }  .big{     width: 200px;     height: 30px;     padding: 17px 10px 10px 10px;     font-size:24px;  } 

i disabling buttons through server side code setting button's enabled property false.

i'm in process of moving more of winforms developer (of many years) web developer, appreciated. did search site answer issue, , although there several posts regarding css styling disabled, button, not find 1 specific issue.

thanks.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -