Skip to content

Instantly share code, notes, and snippets.

@sudarshanReddykurri
Created September 10, 2016 06:10
Show Gist options
  • Save sudarshanReddykurri/88a8f00e26dc51baef593b95dd55e0b4 to your computer and use it in GitHub Desktop.
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
<div id="test2" data-extra=" of bar
food">Hello World</div>
#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