9

Possible Duplicate:
Are class names in CSS selectors case sensitive?

In my application am using css classname for styling. But while viewing in the browser the class name applied also css also attached but style was not applied because of case sensitive difference with both in tagclass name and in css classname. How to resolve this?

Thanks

3
  • CSS isn't case-sensitive outside of URLs. Commented Nov 20, 2009 at 6:38
  • Please show a sample of what isn't working. Commented Nov 20, 2009 at 6:56
  • The question is good, there are two subquestion: 1) about selectors. 1.2) about class names in selectors; 2) about property values. Commented Jul 31, 2013 at 10:10

4 Answers 4

4

Whilst CSS is not case sensitive, class names are defined as case sensitive in HTML 4.01, so some browsers (particularly Netscape 6, apparently) may well implement it as such.

Sign up to request clarification or add additional context in comments.

Comments

1

CSS is not case sensistive, but urls and font-families may be.

Comments

1

Maybe the problem is arising from DocType. Check it out:

http://webdesign.about.com/od/css/f/blcssfaqcase.htm

Cascading Style Sheets (CSS) is not case sensitve. However, font families, URLs to images, and other direct references with the style sheet may be.

The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers.

Comments

0

CSS is not case sensitive. May be you have not included your css in your file or folder path for css file is not correct so it may not be loaded.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.