CssClass problem

  • Thread starter Thread starter Shane Story
  • Start date Start date
S

Shane Story

I made a style sheet with the following class:

..ErrText {
color:#FF0000;
font-family:Verdana,Tahoma,Arial;
font-size:9pt;
}

I linked it to my ASPX doc, then in the CssClass property for a label
control, then a Text control, I put .ErrText

This really seems to have little affect on it in IE or Firefox.

What am I doing wrong?

Thanks,

Shane
 
Leave the '.' out when you refer to the class in the document. The '.' is
part of the StyleSheet syntax, not the class reference in the document.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
Actually I am pretty sure I don't have the "." in that property.
I will have to check that tonight--I am not in front of the code at this
moment.

The only thing different I have done is added a browserCaps section to
web.config that I got from the Internet to better suppport FireFox. Is
seems to have css1 and 2 turned on there.

Thanks
 
Maybe it is because I started out by manually specifying values and later
put in the class. I went over each property to delete them, but maybe that
didn't take.

Doing this from scratch on a new page without ever setting properties
otherwise, seems to work. I will try that theory tonight.

-Shane
 
Thanks Kevin,

I double checked and the "." was the problem. What a bugger that was to
debug.
 
What a bugger that was to debug.

No doubt, Shane. Those tiny syntax errors are easy to overlook, especially
when they don't affect the way the app runs.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 

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