Home html Start every sentence with a capital letter using CSS

Start every sentence with a capital letter using CSS




I want every offer started with a capital letter. What means CSS use?
text-transform raises either all or every word .

Answer 1, Authority 100%

On Pure CSS it is impossible to do this. Or wrap each offer to a separate div and use the pseudolass : first-letter , or fasten JavaScript.

Answer 2

Using only CSS No

Answer 3


p: first-letter {text-transform: capitalize;}

Answer 4

Using CSS you can change the string only in block objects, headers and paragraphs.

We make the first letter of the capital, in the string in the OTF-8 symbol encoding format, using PHP:

$ title = MB_STRTUPPER (MB_SUBSTR ($ Content, 0, 1, 'UTF-8'), 'UTF-8'). MB_Substr ($ Content, 1, NULL, 'UTF-8');
  Echo $ title;

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions