How do I remove the underline from a link button?
I want it removed in all cases -when it is new or visited.
I can use the style tag, or some other method if neccessary.
Printable View
How do I remove the underline from a link button?
I want it removed in all cases -when it is new or visited.
I can use the style tag, or some other method if neccessary.
Link buttons are rendered as anchors <A .... > so you can remove the underline from all anchors in your website by using.
In CSS:
or otherwise create a CSS class and only assign it to your link buttons.Code:A
{
text-decoration:none;
}
How can I do it on just specific link buttons ( so not all links on the page will be affected )
.CSS.aspxCode:.NoUnderLine
{
text-decoration: none;
}
Code:<asp:linkbutton id="whatever"..... CssClass="NoUnderLine" />