After naming a style sheet theme Basic and applying it to my web.config file, I created a Validator class in the css file. Utilizing the cssClass attribute with the Validator type, I successfully adjusted the font-weight property but struggled to change the color; it remained stuck at red. Despite confirming that both the style sheet theme and control were functioning properly (as evidenced by the font-weight changes taking effect), the text color property was unresponsive.
Web.Config:
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<pages styleSheetTheme="Basic" />
</system.web>
</configuration>
ASPX Code:
<p id="validation">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
CssClass="validator" HeaderText="Please correct the following
errors:" />
</p>
Basic.css Code:
.validator{
color: Gray !important;
font-weight: bold;
}
Upon revision, the added code now functions correctly, changing the color to Gray as intended.