I don't have much expertise in CSS, so please bear with me if I use any incorrect terminology.
In my webforms on .NET, I typically utilize a css file named styles.css. Within this file, there is a method that looks like this:
.tbox
{
border-right: #728d8d 1px solid;
border-top: #728d8d 1px solid;
font-size: 13px;
border-left: #728d8d 1px solid;
border-bottom: #728d8d 1px solid;
font-family: Verdana;
background: url(images/boxBorders/formshdw.gif) no-repeat -4px -4px #fff;
}
This method is usually used for textboxes. The issue arises when I disable a textbox and it retains the same appearance without visually indicating to the user that it's disabled. After some searching, the only solution I could find was:
input[disabled='disabled']
{
/* Your CSS Styles */
background-color:#F0F0F0 !important;
color:#303030 !important;
}
input[readonly]
{
/* Your CSS Styles */
background-color:#F0F0F0 !important;
color:#303030 !important;
}
However, I am concerned about having to add these properties to each form individually. Is there a way for the .tbox class to inherit these specific attributes? Even if only one of the solutions works, as long as it prevents users from typing and changes the textbox color, I will be satisfied.
Best regards