Is it possible to display only the first two letters of a string using pure CSS?
So far I have tried (without success):
- :first-letter (targets only the first letter and does not work for me anyway)
- :nth-of-everything (requires additional javascript)
- text-overflow: ellipsis; (is adding points)
- overflow: hidden; (only works if the text-size does not change, clumsy solution)
Is there another way?