Created
August 10, 2012 11:25
-
-
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
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
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