Results 1 to 2 of 2

Thread: Can change color for anchor link in content page

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up Can change color for anchor link in content page

    Hi friends

    Can we change color for anchor link in content page.

    I know we can do that in Normal HTML page.But i give class

    name for anchor link and apply css for changing color

    <a class ="gridlink" href="javascript:void(0);" onclick="ShowEditContact('divEditContact',this,event,'250','## DataItem.ClientId ##');"> Edit</a>


    Css for my page

    a.gridlink:link {
    text-decoration:'underline';
    color:Blue;
    }
    a.gridlink:visited {
    color:Green;
    font-style :italic;
    }
    /*a.gridlink:hover {

    text-decoration:'underline';
    color:Green;
    }*/

    a.gridlink:active {

    color:Green;
    font-weight:bold;
    }

    I hope reply would be appreciated

    Thanks
    Failing to plan is Planning to fail

  2. #2
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    Re: Can change color for anchor link in content page

    You might want to try giving the gridview a cssClass, then in the stylesheet

    Code:
    .SomeGridView a {color:#000000;}
    .SomeGridView a:hover {color: #ff00000;}

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