Is there any way with CSS you can target the first letter of every word?
I know you can use:
text-transform:uppercase to make the first letter of every word capital.
font-variant: small-caps to create small caps
::first-letter to target the first letter of an element (but not the first letter of every word in that element)
However, is there anything that lets you target the first letter of every word. I thought the CSS3 selectors would allow for something, but I haven’t been able to find it.
Sorry to bump up an old thread, but I have a follow up question and I thought it would be politer to continue this thread than to start a new one.
The code lpcstr posted works perfectly. Except, if there is any HTML inside the “each-word” element (for example, an anchor or a span tag), the HTML gets converted into regular text.