Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
WebDateChooser and CSSClass
posted

I want to format the text in the WebDateChooser to be Arial 8pt.

In trying to do this, I set the CSSClass to webdatechooser in my stylesheet with the following:

.webdatechooser
{
font-family: Arial;
font-size: 8pt;
}

I can't figure out what's going wrong here.  I know I could go through and set this for the 10 different webdatechoosers that I have on this page, but that's the point of CSS in that you only need to do this once.

Thanks in advance for any and all help

Dave

Parents
No Data
Reply
  • 24497
    posted

    Hi,

    The edit field, "frame" and button elements use different styles and css classes. Try following:

    <style type="text/css">
    .redFont
    {
     
    color:red;
     
    font-size:20px;
     
    font-family:courier new;
    }
    .redBorder
    {
     
    border:3px solid red;
    }
    </style>

    <igsch:WebDateChooser CssClass="redBorder" ID="WebDateChooser1" runat="server">
     
    <EditStyle CssClass="redFont">
     
    </EditStyle>
    </igsch:WebDateChooser>

    Regards,
    Viktor
    Infragistics web team

Children
No Data