font color of label using dot net asp

March 19, 2010 - 10:19 pm
  • How do I change the font color of a label in the stylesheets

    in the stylesheets I have what I called

    a label

    and within the page I have label1

    I can not seem to get the label in the stylesheets to effect the font color on the label...
    is it fore-color that I need to use to change color and if so how is the line written?

    using Microsoft dot net studio.....and this is for an asp page

    thanks for any infor :weee:


  • Now I know nothing at all of asp, I thought it was a reptile, but if you put class="label" in the code where you have cssStyle="Styles.css", and I assume you have a link in the head section of your page to the style sheet, then it should do it.
    link to the external sheet thus:

    in the head section of the page
    and in your page:

    Login Page



    This worked OK in Topstyle when I tried it. HTH


  • I'm not sure what you mean, Greg. Can you post a least some of the css code and html it will be applied to, including the label?


  • :) Cheers! to dabbler

    You were right on!... without even knowing ASP!

    Thanks


  • The label is a deep blueist color and we would like the text to be white, we have coded this without style sheet but we are wanting to use style sheet so if they are style changes in the future we can modify the style page but because we can not get the font of the text
    white we are :smack:



    Styles.css

    .label

    {

    color: white;

    font-family: Verdana, Arial;

    font-size: 14px;

    }



    login.aspx





    Login Page












  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about font color of label using dot net asp , Please add it free.