Posted By

neal_grosskopf on 06/07/08


Tagged

css CSS3 Diagnostics


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

neal_grosskopf
Sn0opy
SpinZ
chianess
rwczippy
rossjha


Using CSS To Find Broken Links & 404 Pages


 / Published in: CSS
 

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

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

  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; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: neal_grosskopf on June 8, 2008

Correction:

a[href$="/contact.asp"], a[href$="/email.asp"] { border: 5px double red; }

a[href="/pages/contact.asp"], a[href="/pages/email.asp"] { border-width: 0px; }

You need to login to post a comment.