We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

neal_grosskopf on 06/07/08


Tagged

css CSS3 Diagnostics


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

neal_grosskopf
Sn0opy
SpinZ
chianess


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.