Click here to Skip to main content
14,603,708 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi i'm working on styling on linkbuttons which are inside td in listview in my master page
when i'm applying this css class to td:
.mylink
a
{
    text-decoration: none;   
    font-size: 12px;
}
a:hover
{
    text-decoration: none; 
    font-size: 11px;
    font-weight: bold;
}

like this:
<td class="mylink">
<asp:LinkButton ID="link" runat="server">some text</asp:LinkButton>
</td>


then it is affecting all links on my master page and all child pages with this master page.
what is wrong? help me...
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

.mylink a
{
    text-decoration: none;
    font-size: 12px;
}
.mylink a:hover
{
    text-decoration: none; 
    font-size: 11px;
    font-weight: bold;
}
   
Comments
Sachin gulati 9-May-14 5:27am
   
thanks alot :)
Rate this:
Please Sign up or sign in to vote.

Solution 2

You missed Class Selector

a:hover
{
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

.mylink a:hover
{
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100