I have CSS that uses a Data Description to display text on a page.
Code:
CSS
#nav a:after { text-align:center; content: attr(data-description); display: block; }
HTML
<li><a data-description="The Thinking Man,The Artist, The Philosopher" href="#">The Renaissance Man</a></li>
I am having problems, and I would like each part of the proposal to be on the line. In other words
The Thinking Man The Artist The Philosopher
But when I insert <br /> , it does not create a gap, it just displays <br /> in the code. How to create line breaks in data description using the following code?
source share