Change Last Word of a Title with CSS and jQuery

Easily change the color of the last word in a title with some simple css and jQuery. In this example, the word, “Title” in My Cool Title will be red.

The html:

The Css:

The jQuery:

Leave a Reply

Your email address will not be published. Required fields are marked *

50 − 42 =