ASP.NET - how to remove underline from likbutton

Asked By msakt on 04-Jun-12 01:24 AM
how to remove underline from likbutton
D N C replied to msakt on 04-Jun-12 01:31 AM
hi,

try using a stylesheet with textdecoration = none
and apply the style to the linkbutton.
Jitendra Faye replied to msakt on 04-Jun-12 01:31 AM
use this css for linkbutton-

text-decoration:none"
Chintan Vaghela replied to msakt on 04-Jun-12 01:35 AM

Hi Frndz,

Call following style sheet class to remove under line from Link button

   <asp:LinkButton ID="lnk"  CssClass="nounderline" runat="server" Text="No Underlilne" ></asp:LinkButton>

  <style type="text/css">

      a.nounderline:link

      {

       

        text-decoration: none;

      

      }

      a.nounderline:visited

      {

      

        text-decoration: none;

      

      }

      a.nounderline:hover

      {

     

        text-decoration:none;

     

      }

      a.nounderline:active

      {

      

        text-decoration: none;

    

      }

    </style>

 

 

 

 

Hope this helpful!

Thanks

 

 

 

 

dipa ahuja replied to msakt on 04-Jun-12 03:52 AM
You can remove it with the css. BUT its better to keep it to display that is link and user can click on it. Otherwise it will look like a label.