Get a free trial // Grow your CSS skills // Land your dream job

Target first word in list

  • # June 25, 2013 at 11:26 am

    I need help!

    # June 25, 2013 at 11:34 am

    There is no such pseudo class as `:first-word.`

    You would need to wrap the word in a span and add a class to that to affect it…but then you’re gonna have a span in a span.

    That’s OK but it looks like you have images in there too which seems a little odd.

    Do you have a live link?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed