property
Initial letter — CSS reference
Sets the size of an initial letter in terms of line count and optionally its sink (the line with which it aligns). Use on ::first-letter for a drop cap without splitting the DOM text. Font metrics affect actual glyph placement.
Formal Syntax & Structure
css syntaxcss
initial-letter: 2;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>initial-letter</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{width:230px;line-height:24px;font:18px/24px serif}#a::first-letter{initial-letter:2;color:green}</style><body><p id="a">Learning CSS starts with a small example and grows through practice.</p></body></html>