Created
July 18, 2013 05:22
-
-
Save johnlouie04/6026881 to your computer and use it in GitHub Desktop.
A CodePen by John Louie Biñas. Simple html5 psuedo element content
This file contains hidden or 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
<div class="box" data-message="hello there want to try me..??"> | |
</div> |
This file contains hidden or 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
.box { | |
background: #f3f3f3; | |
width: 200px; | |
height: 50px; | |
padding: 5px 15px; | |
text-align: center; | |
border: 1px solid #d3d3d3; | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
} | |
.box:after { | |
content: attr(data-message); | |
line-height: 50px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment