Forum Moderators: not2easy
I inherited a site that uses styles with improper naming conventions - it has many styles starting with numerals. IE displays the styles fine, NS does not.
Does anyone have a way to change the name of a style sitewide and obviously update the code on all pages?
I was just trying to find the exact reference at W3C concerning CSS and Class Naming Conventions but couldn't locate it. It pretty much says that you should not name your classes beginning with a number. This was a no-no in CSS1. Netscape ignores any classes that begin with a number.
The easiest way that I've found to correct this, is through a find and replace routine. First thing you'll need to do is carefully consider the names of your classes. Once you've determined the proper naming conventions, you'll then need to do your find and replace routine. It's going to be tedious, but if you have the right tools, it shouldn't take too long! ;)
Good luck!