Css use the first letter of each word, capitalized

Hi, I want to use the first letter of each word that I was looking for, but I did not understand it, is it possible with

CSS

?

My code only works for the first letter.

HTML

<span>Some Text Value</span>

CSS

.listing-table table th:first-letter
{
    font-size: 15px;
    font-weight: bold;
}
+4
source share
2 answers

You can try using this:

p { text-transform: capitalize; }

From docs :

text conversion

This property controls the capitalization effects of the element text.

capitalize Places the first character of each word in uppercase; Other characters are not affected.

+6
source

:first-letter , . , span HTML th CSS, ?

:

 .listing-table table th{
     text-transform: capitalize;
 }

+2

Source: https://habr.com/ru/post/1606784/


All Articles