Created
September 10, 2016 06:10
-
-
Save sudarshanReddykurri/88a8f00e26dc51baef593b95dd55e0b4 to your computer and use it in GitHub Desktop.
Adding multi-line CSS content (Method-2) Note: The data-extra attribute is multiline
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="test2" data-extra=" of bar | |
| 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
| #test2: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