Using Style Sheet with Asp.Net

  • Thread starter Thread starter Selden McCabe
  • Start date Start date
S

Selden McCabe

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Master Pages, Skins & Style Sheets 1
using css in menu's and treeview 8
Style Sheets 3
Labels in CSS 1
Directory references IIS 2
Style Sheet Woes 2
CSS not working! Please help. 2
Style sheets 1

Back
Top