Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Create a Drop Caps Effect using CSS

  • Last Updated : 23 Nov, 2020

Drop caps are define as the first capital letter of a paragraph in much larger font size that has the depth of two or more lines of normal text. 

The task can be done by using the CSS ::first-letter pseudo-element to create beautiful drop caps effect. The ::first-letter selector in CSS is used to apply style to the first letter of the first line of a block-level element, the condition is it should not be preceded by other content ( such as images or inline tables).

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.


::first-letter {
    // CSS Property 



<!DOCTYPE html>
        .gfg::first-letter {
            font-size: 250%;
            color: green;
        div::first-letter {
            font-size: 250%;
            color: blue;
            font-weight: bold;
<body style="text-align: center;">
    <h1 style="color:green;">
        How to create drop caps 
        effect using CSS
    <p class="gfg">
        A computer science portal for geeks.


Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!