CSS class names should be lowercase?

David 1cog <[email protected]> 28 Jun 2003 14:19:41 -0000
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <90104f6408ddb6800a066b39148fadb1@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=188752#188752
----------------------------------------------------------------

Hi

Something for everyone to consider: CSS classes are case sensitive, e.g. class="headerError" is not the same as class="headererror".  If you use a style sweeper, such as the one in [url]http://www.bradsoft.com/topstyle/[/url] to organise and maintain your style sheets it could lead to problems when classes are converted to all lowercase.

IMHO it would be a good idea if all CSS classes in osC were lowercase.  This would also comply with XHTML standards.

P.S. If anyone knows how to batch replace all instances of 'class="SomeClass"' with 'class="someclass"' I'd be grateful, otherwise I've got a boring hour doing it manually.