Using Style Sheet with Asp.Net

Discussion in 'ASP .Net' started by Selden McCabe, Jul 8, 2004.

  1. I'm trying to use a style sheet and am missing something. In one project
    the following procedure works, and in another it won't:

    1. Create a new Webform
    2. Drag Styles.css to the Webform's design surface
    3. Add a control (say, an label)
    4. Set the control's CssClass property to one of the styles in the style
    sheet
    5. Run the project and look at the page.

    In one project, this works, and the label's font, color, etc. come from the
    style.

    But in a second project, doing this doesn't change the label's appearance.

    What am I missing?

    Thanks,
    ---Selden McCabe
    Selden McCabe, Jul 8, 2004
    #1
    1. Advertising

  2. Selden McCabe

    Bobby Ryzhy Guest

    <asp:Table ID="_table" Runat="server" CssClass="classABC">
    make sure you are using the runat=server

    Bobby Ryzhy
    bobby@ name of domain below
    http://www.weekendtech.net

    On Thu, 8 Jul 2004 08:20:54 -0700, "Selden McCabe" <>
    wrote:

    >I'm trying to use a style sheet and am missing something. In one project
    >the following procedure works, and in another it won't:
    >
    >1. Create a new Webform
    >2. Drag Styles.css to the Webform's design surface
    >3. Add a control (say, an label)
    >4. Set the control's CssClass property to one of the styles in the style
    >sheet
    >5. Run the project and look at the page.
    >
    >In one project, this works, and the label's font, color, etc. come from the
    >style.
    >
    >But in a second project, doing this doesn't change the label's appearance.
    >
    >What am I missing?
    >
    >Thanks,
    > ---Selden McCabe
    >
    Bobby Ryzhy, Jul 8, 2004
    #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. Colin Graham

    Style Sheet Asp.Net

    Colin Graham, Apr 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    8,752
    Colin Graham
    Apr 16, 2005
  2. Simon
    Replies:
    2
    Views:
    2,094
  3. Replies:
    0
    Views:
    510
  4. jonny
    Replies:
    0
    Views:
    487
    jonny
    Aug 15, 2007
  5. Utada P.W. SIU

    Cannot using style sheet inside ASP generated Excel

    Utada P.W. SIU, Oct 4, 2004, in forum: ASP General
    Replies:
    1
    Views:
    270
    Ray Costanzo [MVP]
    Oct 4, 2004
Loading...

Share This Page