styles on linkbuttons

Discussion in 'ASP .Net' started by Kasper Birch Olsen, Mar 9, 2006.

  1. hi NG

    im trying to change the color of a linkbutton.

    code:
    LinkButton lb = new LinkButton();
    lb.Text = "myLinkButton";
    lb.CssClass = "LinkButtonStyle";

    in the css stylesheet I have a class

    ..LinkButtonStyle
    {
    color: white;
    border: 1px solid green;
    }

    The border becomes green, but the color doesnt change... how can I make it
    change color?

    - Kasper
     
    Kasper Birch Olsen, Mar 9, 2006
    #1
    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. Vidar Petursson

    Re: LinkButtons and MouseOver

    Vidar Petursson, Jul 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,253
    sramruttun
    Jul 9, 2003
  2. Rick Glos
    Replies:
    0
    Views:
    647
    Rick Glos
    Jul 8, 2003
  3. Lucas Tam

    LoadPostData and LinkButtons

    Lucas Tam, Aug 18, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    324
    Lucas Tam
    Aug 18, 2003
  4. Stefan Landgraf

    Linkbuttons not working

    Stefan Landgraf, Dec 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    338
    Stefan Landgraf
    Dec 11, 2003
  5. Replies:
    1
    Views:
    405
    David Wier
    Sep 19, 2006
Loading...

Share This Page