Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

Help with CSS

I've create a new VS project.   I've added two styles to the Site.css file.  I using them in two controls, however the style does not get applied. What am I doing wrong?



<asp:RequiredFieldValidator runat="server"
                    ID="NameRequired"
                    ControlToValidate="NameTextBox"
                    ErrorMessage="<b>Please enter a name.</b><br /> This is a required field."
                    Display="None" CssClass="errorMessage" />

             <asp:ValidatorCalloutExtender runat="Server"
                    ID="NameExtender"
                    TargetControlID="NameRequired"
                    HighlightCssClass="validatorCalloutHighlight" />


.errorMessage  
{
    background-color: #FFFF00;
}

.validatorCalloutHighlight {
    background-color: #FF0000;
    color: #034af3;
}
ASKER CERTIFIED SOLUTION
Avatar of UnifiedIS
UnifiedIS

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HLRosenberger

ASKER

Where is that code placed within the aspx?
got it working.  thanks.
thanks
Avatar of UnifiedIS
UnifiedIS

Right after the "Page" definition:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ClaimHistory.aspx.vb" Inherits="ClaimHistory" title="Claim History" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>