Newbie: Removing underline from Hyperlink

Discussion in 'ASP .Net' started by =?Utf-8?B?QW50?=, Sep 29, 2007.

  1. Hi,
    I've added hyperlink objects to a web form & I would like to display them
    without the underline. How can I do this?
    The element in HTML appears to be <asp:Hyperlink

    thus in a stylesheet:

    asp:HyperLink
    {
    text-decoration:none
    }


    I tried to set this up in a stylesheet but no go.

    How can i state a hyperlink object in a style sheet, or some other way to do
    this?

    Many thanks for any ideas on this

    Ant
    =?Utf-8?B?QW50?=, Sep 29, 2007
    #1
    1. Advertising

  2. On Sep 29, 10:13 am, Ant <> wrote:
    > Hi,
    > I've added hyperlink objects to a web form & I would like to display them
    > without the underline. How can I do this?
    > The element in HTML appears to be <asp:Hyperlink
    >
    > thus in a stylesheet:
    >
    > asp:HyperLink
    > {
    > text-decoration:none
    >
    > }
    >
    > I tried to set this up in a stylesheet but no go.
    >
    > How can i state a hyperlink object in a style sheet, or some other way to do
    > this?
    >
    > Many thanks for any ideas on this
    >
    > Ant


    for all links
    a
    {
    text-decoration:none
    }

    per control

    a.c1
    {
    text-decoration:none
    }
    ....
    <asp:HyperLink .... class="c1"...
    Alexey Smirnov, Sep 29, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest

    HyperLink underline

    Guest, Jan 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,643
    Vikesh
    Jan 5, 2005
  2. Jeff

    HyperLink underline, how?

    Jeff, Aug 11, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    13,441
    Przemek Ptasznik
    Aug 12, 2006
  3. Alan Z. Scharf

    Underline Hyperlink Column Heading Only

    Alan Z. Scharf, Dec 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    198
    Alan Z. Scharf
    Dec 17, 2004
  4. Dmitry N.Ananyev

    May I disable underline in one gridview Hyperlink field ?

    Dmitry N.Ananyev, Jun 29, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    263
    Jagdish
    Jul 1, 2005
  5. Girish B

    underline in hyperlink

    Girish B, Jul 30, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    127
    Girish B
    Jul 30, 2007
Loading...

Share This Page