3 ms·
Can css specify which letter number in a text to apply to? If so, a single span could be used for the text, no?
by quizbiz 16y ago
Can css specify which letter number in a text to apply to? If so, a single span could be used for the text, no?
- Jgrubb 16y agoCSS, no. JS, probably.
- drdaeman 16y agoNo. The only thing one could do to minimize the HTML is to use :nth-child() instead of classes. If CSS would support higher order matrices for transform, it could be possible with just one line per vendor suffix. But CSS3 has only 2x2 matrices, which aren't enough.
- Timmy_C 16y agoYou can apply styling to the :first-letter pseudo element but that's where it ends.