How to create this paragraph style in HTML and CSS

I work with first letter of paragraph but i face the alignment issue
No description
No description
No description
5 Replies
Tenkes
Tenkesβ€’8mo ago
I think float: left on first letter would work nice here.
No description
MarkBoots
MarkBootsβ€’8mo ago
yea that should do the trick, unfortunatly the initial-letter property was never finished (only with webkit prefix but not in firefox) https://css-tricks.com/almanac/properties/i/initial-letter/
Geoff Graham
CSS-Tricks
initial-letter | CSS-Tricks
initial-letter is a CSS property that selects the first letter of the element where it is applied and specifies the number of lines the letter occupies.
Abdul Rehaman Shaikh
Abdul Rehaman Shaikhβ€’8mo ago
There is a first-letter pseudo class in css which will help you with this. Syntax: p::first-letter { font-size: 20px; color: salmon;}
Abdul Rehaman Shaikh
Abdul Rehaman Shaikhβ€’8mo ago
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Want results from more Discord servers?
Add your server