Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: not2easy
The problem is that I discovered (to my dismay) that I duplicated some class and id's for the same element in different files.
What I am looking for is a utility that identifies all the classes and id's a site has and lists what files each descriptor is found in. I am wanting to identify all the duplicates so I can clean them up.
Does anybody know where I could find such an animal?
Eric, I assume you came across this because your CSS was not behaving the way you wanted it to on certain pages? How did you find out you were replicating classes and ids?
I know of no utility. I must say, 12 stylesheets seems a little overboard... what kind of site is this? I would imagine that if you have 12 different stylesheets, they can't be that large... I think you'll have to just read through them all.
Edit: Now that I think about it, the time and effort put forth to find and execute such a utility is probably more than if you would just look through the files manually.
My stylesheets are arranged in the following way:
I have one sheet to take care of the basic shape of the site. It's a centered box with a gray backround and certain font.
From there the site splts into two different styles one for one side of the company, another for another side of the company. This is two different stylesheets as each side of the company has a different color scheme.
Lastly, each page has it's own styling so each page has it's own stylesheet. That's why it totals up to twelve. It actually sounds overboard but makes a lot of sense if you saw the way the stylesheets are divided.
If I can't find a utility for this I think I will roll my own in VB.NET or PHP.
Again, thanks for your suggestions!
Hope that helps...
I like TopStyle but do have problems with it's preview feature. Doesn't update properly. I've reported it. Bradbury doesn't see that it is a bug. I am waiting for the next version, hopfully they correct it.