CSS First Letter Highlighting

后端 未结 2 935
孤独总比滥情好
孤独总比滥情好 2020-12-04 02:03

I understand that with CSS formatting the first letter of each paragraph is possible via:

p:first-letter
{
font-size:20px;
}

However upon u

相关标签:
2条回答
  • 2020-12-04 02:17

    This is a bug in Chrome/ium/WebKit: https://code.google.com/p/chromium/issues/detail?id=17528

    0 讨论(0)
  • 2020-12-04 02:25

    Right, it is not visually selected but in the background it is. If I select and copy and then paste it, I get "Hello" so this just might be a problem with the different font-sizes. font-variant:small-caps works perfectly (but uses uppercase).

    You might want to try Lettering.js or alternatives http://letteringjs.com/ https://github.com/davatron5000/Lettering.js

    0 讨论(0)
提交回复
热议问题