banner ad
ASP.NET Forums/Community/Component Discussions/changing font color

changing font color RSS

3 replies

Last post Apr 28, 2010 12:20 AM by shailesh soni

Regards,
Shailesh

If This post helps you to solve your problem please mark this as an answer.
  • CraigGiles CraigGiles

    Member

    15 Points

    30 Posts

    Re: changing font color

    Apr 27, 2010 09:30 AM|CraigGiles|LINK

    The only way I could make it work was to add important.

    Why is this?

    /*HEADER Tiles INFORMATION*/
    .RadGrid_Mcs .rgHeader,
    .RadGrid_Mcs .rgHeader a
    {
        color:#DFE6EC !important;
        font-family:Arial;
        vertical-align:middle;
        text-decoration:none;
        border-right:groove 1px #88AAC5;
    }


     

     

  • shailesh soni shailesh son...

    Participant

    1322 Points

    496 Posts

    Re: changing font color

    Apr 28, 2010 12:20 AM|shailesh soni|LINK

    Yes, This is right bcoz css in header <a> inheriting from parent. So suppose if parent is Table or TD then and somewhere you have declare css for <a> then it will take first as priority and then override you "rgHeader a" css. So by !important flag you can change priority so it will now apply css from "rgheader a"  class.

    Regards,
    Shailesh

    If This post helps you to solve your problem please mark this as an answer.
  • ‹ Previous Thread|Next Thread ›