July 19, 2004

CSS Naming of IDs

This is a quick tip. I'm feeling lazy today

XHTML is case-sensitive. This applies to your CSS as well. So if you have two CSS IDs in your code, say #nav-main, and #nav-Main, the document sees those as two different IDs. But you can't apply those two IDs to elements in the document.

So the point is, be careful of your capitalization schemes, and keep consistent.

Post Info

Tagged As Tip

Comments are Open (0)

Posted at 08:56 AM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu