Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Target the first 2 words in an

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35244
    sly
    Participant

    Does anyone have a way to target the first 2 words in an h1, so i can make them a different color?

    #90976
    chrisburton
    Participant

    You can use spans or lettering.js

    #90979
    sly
    Participant

    Thanks, I also found a jQuery solution:





    #90980
    sly
    Participant

    oops, forgot to uncomment the other option:

    return text.replace(/Foo to you too/, function(match){ //<

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.