Using CSS To Find Broken Links & 404 Pages


/ Published in: CSS
Save to your folder(s)

Using CSS3 selectors, highlight links to deleted pages and 404 pages. Also highlight function calls to deleted javascript using this CSS technique.


Copy this code and paste it in your HTML
  1. /* paths to deleted pages */
  2. a[href="/pages/contact.asp"],
  3. a[href="/pages/email.asp"]
  4. { border-width: 0px; }
  5.  
  6. /* a deleted javascript function call */
  7. a[onclick*="old()"]
  8. { border: 5px dashed red; }

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=14

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.