CSS in Skin Files

I have been seacrching around for a while and can't seem to find an answer to this but is it possible to have a skin file where the only property set for the control is a CssClass which defines the appearance of the control?

For example, if I wanted all of my buttons to have blue text which is in upper case. I set the CSS class called button and apply it to every button on the page and it works fine. Alternatively I could have set the properties in a skin file to have the text colour in blue, etc. (although I don't think there is an uppercase conversion in the skin but I may be wrong). This would then be applied to every button without declaring it and also works.

My issue is that if I did this by simply calling CssClass="button" in the skin and removing all other formatting, the buttons on the rendered page all come out as the boring grey ones. Am I just missing something here or is this a known limitation?
Enhanced SupportAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Enhanced SupportAuthor Commented:
I take it back, it seems to be working now. Any idea what may have happened before?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
guru_samiCommented:
--->Any idea what may have happened before?
May be your skinfile was not saved and so the pages weren't taking up the skin.
0
Enhanced SupportAuthor Commented:
It definately was saved. I'll see if I can find what was happening before as luckily, it was only in a test project anyway. It's bound to be something silly I'm sure. Web.Config probably. All the rest of my problems seem to lie in there. Ha ha!
0
guru_samiCommented:
may be somewhere themes were disabled for pages in web.config or yes something silly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.