Created
January 15, 2013 17:45
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::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