My current coding setup includes:
<div id="mydiv" data-content="Loading..."></div>
This is how I style it with CSS:
#mydiv:after{
content: attr(data-content);
height: 100%;
opacity: 1;
position: absolute;
text-align: center;
text-transform: uppercase;
width: 100%;
white-space: pre;
}
And here's the jQuery part:
$('.ui-effects-transfers').attr('data-content',"Loading... \A Please wait...");
But I'm facing an issue when I try to implement a line break in the CSS using \A. It works when set directly in the CSS rule, but not when using data-content.
Any suggestions on how to resolve this problem?