Skip to content

Instantly share code, notes, and snippets.

@paceaux
Created January 15, 2013 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paceaux/4540434 to your computer and use it in GitHub Desktop.
Save paceaux/4540434 to your computer and use it in GitHub Desktop.
HTML and CSS debugging snippet. Use this to see every id and class on the page, along with the src/href and alt/title. Handing for quick debugging.
::before, ::after{
font-size: .75em;
padding: 0 1em;
text-decoration:none;
position:relative;
left: -2em;
}
::before{
color:blue;
top:-1em;
}
::after{
bottom:-1em;
color:red;
}
div::before{
content: attr(id)
}
div::after{
content:attr(class)
}
img::before, a::before{
content: attr(alt) attr(title);
}
img::after, a::after{
content: attr(src) attr(href);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment