element
I am aware of the :first-line
selector in CSS, but I cannot find anything that will allow me to select the last line.
The reason I am trying to select the l
IIRC, the only css control over the last line is text-align:
text-align-last: right;
I'm afraid javascript, or actually wrapping the last line in a span and styling that, is the only way. Below is the JS for reference.
var thetext = document.getElementById('some_element').innerHTML.split(/\r?\n/);
alert(thetext[thetext.length - 1]);