Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Cleanup Unused CSS Tags?
Name: RTAdams89 Date: December 18, 2007 at 22:28:18 Pacific OS: na CPU/Ram: na Product: na
Comment:
I've just revamped a site that was made by someone else. In the process, I've noticed that there are a bunch of tags in the CSS file that don't seem to be used anywhere in the HTML files. I want to clean up the css file a bit, but I don't want to remove anything I need. There are too many HTML files to go through by hand and cross reference with the tags in the CSS file. Is there any software that will automate this for me?
Name: smbotans Date: December 19, 2007 at 17:59:03 Pacific
Reply:
can't think of any that specifically do that ... i would instead look for a program that enables me to find a string (a portion of text) in the files contained in a folder and then check to see if the css tags are mentioned in any of the files
this is likely to be a longish process depending on how many tags you have in your css file
Name: Xmetalfanx Date: December 30, 2007 at 00:00:27 Pacific
Reply:
I know http://www.newsgator.com/Individual... (Top Style) can do that... after making a "profile" for your site... go to "View" Then "Site Report" and look under "Orphan Classes"
Summary: I need to conditionally include a style sheet within the <BODY> of a document - using PHP. Is it legitimate to use <STYLE> tags or a <LINK REL="StyleSheet" HREF="style.css" TYPE="text/css"> t...
Summary: Ok I dont have direct answers for your problems but: Try to make your code as conform as possible with W3C. Use W3C validator for it: http://validator.w3.org/ And if you use CSS then try to use the CS...