Css first-letter for link

The First class pseudo-class is great for the p element, but not for binding (link). What for? How to make the first letter style different for the <a> element

 a:first-letter { font-size:200%; text-transform:uppercase; color:#8A2BE2; } 
+6
source share
3 answers

According to the W3 specification, the :first-letter pseudo :first-letter element only works for a block element that a not.

Oddly enough, *:first-letter caused the conversion of the first letter in Chrome 14 and Firefox 3.6.23. Fiddle: http://jsfiddle.net/8W7FF/3/

+2
source

If JavaScript is an option worth paying attention to: http://letteringjs.com (which should be compatible with multiple browsers)

0
source

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


All Articles