css styles not working

  • Thread starter Thread starter Jeff User
  • Start date Start date
J

Jeff User

Hi all

Now that the entire web project is finished, I wanted to use style
sheet to set a few basic styles like the color of all (asp:)labels

I created style sheet with the builder which has an element style for
a label like this
Label{ color:tan }

I place link in header of document, but labels are still black.

All these controls on the web page(s) are ASP controls in a form. They
already all have a Style tag with nice things line Z-Index, Absolute
position, Top, etc...

Is is possible that style is not applied because there is already a
style tag on every element?

If the above isnt going to work, then is there a way to apply color
attribute to all tags programatically in my base page maybe?

Thanks
Jeff
 
Hello Jeff,

CSS Styles style HTML not ASP.NET, so if you look at how the ASP:Label's
are generated (I think SPAN's). Then you would need to setup a CSS Style
for the HTML not the Label. Does that make any sense?

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
http://adoguy.com
 

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

Back
Top