Created
September 10, 2016 06:14
-
-
Save sudarshanReddykurri/e51524053fcef244a7342cf0f75a9b6c to your computer and use it in GitHub Desktop.
Adding Multi line Content using CSS (Method-4)
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 id="test4" data-extra=" of something food">Hello World</div> | |
| <br> | |
| <div id="test5" data-extra=" of something2 
 food">Hello World</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
| #test4:after, #test5:after { | |
| content : attr(data-extra); | |
| white-space: pre; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment