View Single Post
Old 12-25-2024, 05:56 PM   #249
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by JSWolf View Post
Nope. That's not what initial-letter is for. Initial letter is for styling the initial letter without the need for a span.

John, you're mixing first-letter with initial-letter.


::first-letter is the selector that allows styling without the span.


initial-letter is a relatively new CSS option (It was Webkit/Safari only for a long time) that allows dropcaps. Eg:


Code:
.two::first-letter {
  initial-letter: 2; /* Initial letter occupies 2 lines */
}
sherman is offline   Reply With Quote