Changing Hyperlink Styles for Each Row in a Table

Discussion in 'ASP .Net Web Controls' started by Brett, Jan 17, 2008.

  1. Brett

    Brett Guest

    I have a page using a <table>, and must remain so for now.

    I am trying to set an a:link style for each row depending on certain
    criteria. Hyperlinks for some rows need to be black, some red. How do I set
    the a:link style for each row. I tried putting in a <style>a:link within the
    first <td> of each <tr>, but it changes the a:link for the entire table, not
    per row. I also tried putting in the <style> at the <tr> level, same result.

    Thanks
    Brett, Jan 17, 2008
    #1
    1. Advertising

  2. Re: Changing Hyperlink Styles for Each Row in a Table

    You need to change the style property of the Hyperlink itself.

    Regards,

    Paulo Santos
    http://pjondevelopment.50webs.com

    On Jan 17, 5:41 pm, Brett <> wrote:
    > I have a page using a <table>, and must remain so for now.
    >
    > I am trying to set an a:link style for each row depending on certain
    > criteria.  Hyperlinks for some rows need to be black, some red.  How do I set
    > the a:link style for each row.  I tried putting in a <style>a:link within the
    > first <td> of each <tr>, but it changes the a:link for the entire table, not
    > per row.  I also tried putting in the <style> at the <tr> level, same result.
    >
    > Thanks
    PJ on Development, Jan 25, 2008
    #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. John Blair
    Replies:
    1
    Views:
    396
    Eliyahu Goldin
    Aug 3, 2005
  2. shank

    inline hyperlink styles

    shank, Dec 18, 2003, in forum: HTML
    Replies:
    1
    Views:
    3,220
    Sid Ismail
    Dec 18, 2003
  3. phl
    Replies:
    1
    Views:
    4,323
    Martin Jay
    Jun 8, 2006
  4. Ken Fine
    Replies:
    4
    Views:
    376
    Steven Cheng [MSFT]
    Jul 14, 2008
  5. D
    Replies:
    0
    Views:
    196
Loading...

Share This Page