Hyperlink Font Color

2 posts, 0 answers
  1. Paula
    Paula avatar
    13 posts
    Member since:
    Jun 2012

    Posted 10 Aug 2010 Link to this post

    I have a radgrid and all of my link buttons, hyperlinks are defaulting to the color black regardless of that css I apply.  What am I missing?

    I have the grid assigned cssclass="RadGrid" and in my css I have:

    .RadGrid a 
    {
        color: #990000;
    }
    .RadGrid a:hover, .RadGrid a:visited 
    {
        font-size: 15px;
        color: #990000;
    }

    The font-size is being applied but not the color.

    Please help!!

    Thanks,
    Paula
  2. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 10 Aug 2010 Link to this post

    Hey,

    You could try to add !important to the CSS definition as in:

    .RadGrid a 
    {
        color: #990000 !important;
    }

    And see if that works; this is helpful to understand the process to:  http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx

    They say not to use !important in that, but !important comes in handy sometimes.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top