Skip to content

Instantly share code, notes, and snippets.

@FrankM1
Created August 10, 2012 11:25
Show Gist options
  • Save FrankM1/3313594 to your computer and use it in GitHub Desktop.
Save FrankM1/3313594 to your computer and use it in GitHub Desktop.
WYSIWYG styles for WordPress editor. Displays the elements classname next to each element
body *[class] {
position:relative;
border:1px dashed #ccc;
}
body *[class]::before {
content:attr(class);
line-height:10px;
color:#fff;
font-size:9px;
font-family:sans-serif;
word-spacing:2px;
padding:2px 4px 2px 4px;
background:#aaa;
position:absolute;
top:-14px;
left:-1px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment