This is a migrated thread and some comments may be shown as answers.

Hyperlink Font Color

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paula
Top achievements
Rank 1
Paula asked on 10 Aug 2010, 04:10 PM
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

1 Answer, 1 is accepted

Sort by
0
Brian Mains
Top achievements
Rank 1
answered on 10 Aug 2010, 04:31 PM
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.
Tags
Grid
Asked by
Paula
Top achievements
Rank 1
Answers by
Brian Mains
Top achievements
Rank 1
Share this question
or