Results 1 to 4 of 4

Thread: Remove underline from link button [SOLVED]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Remove underline from link button [SOLVED]

    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.
    Last edited by dogboydelta; Aug 30th, 2006 at 11:29 AM. Reason: solverd

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    Re: Remove underline from link button

    Link buttons are rendered as anchors <A .... > so you can remove the underline from all anchors in your website by using.

    In CSS:
    Code:
    A
    {
      text-decoration:none;
    }
    or otherwise create a CSS class and only assign it to your link buttons.
    Last edited by Fishcake; Aug 30th, 2006 at 08:56 AM.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: Remove underline from link button

    How can I do it on just specific link buttons ( so not all links on the page will be affected )

  4. #4
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    Re: Remove underline from link button

    .CSS
    Code:
    .NoUnderLine
    {
      text-decoration: none;
    }
    .aspx
    Code:
    <asp:linkbutton id="whatever"..... CssClass="NoUnderLine" />

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width