What you are looking for is a pseudo-element that doesn’t exist. There is :first-letter
and :first-line
, but no :first-word
.
You can of course do this with JavaScript. Here’s some code I found that does this: http://www.dynamicsitesolutions.com/javascript/first-word-selector/