Click here to Skip to main content
15,921,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
CSS
.mylink
a
{
    text-decoration: none;   
    font-size: 12px;
}
a:hover
{
    text-decoration: none; 
    font-size: 11px;
    font-weight: bold;
}

like this:
XML
<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

You missed Class Selector

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

.mylink a:hover
{
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}
 
Share this answer
 
CSS
.mylink a
{
    text-decoration: none;
    font-size: 12px;
}
.mylink a:hover
{
    text-decoration: none; 
    font-size: 11px;
    font-weight: bold;
}
 
Share this answer
 
Comments
Sachin gulati 9-May-14 5:27am    
thanks alot :)

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900