Skip to content

Instantly share code, notes, and snippets.

@sudarshanReddykurri
Created September 10, 2016 06:14
Show Gist options
  • Save sudarshanReddykurri/e51524053fcef244a7342cf0f75a9b6c to your computer and use it in GitHub Desktop.
Save sudarshanReddykurri/e51524053fcef244a7342cf0f75a9b6c to your computer and use it in GitHub Desktop.
Adding Multi line Content using CSS (Method-4)
<div id="test4" data-extra=" of something &#10; food">Hello World</div>
<br>
<div id="test5" data-extra=" of something2 &#xA; food">Hello World</div>
#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