javascript - Is there a cross-browser css way to decorate only last word in a span block? -


I need to show a list of users who should look like the example below:

< P> Helen Burns
Edward Fairfax Rochester
Bartha Antoinette Mason
Adele Wain < / P>

Is there a way to get it without using javascript? Each line should be a period, i.e. & lt; Span & gt; Helen & lt; / Span & gt; & Lt; Span & gt; Burns & lt; / Span & gt; is not acceptable.

No, no. If you do not want your last name in your own tags, then you have to use some script to complete this.

In the browser, each line is an element, and "words" itself has no different meaning, as far as CSS is concerned

doing this You should put words in different tags

Comments