Site logo

Archived topic

Drop Cap - Changing Size and Background Colour

7 replies · Started by Janine on February 26, 2021

Viewing posts 1–8 of 8

Hi.

How can I control the size of my Drop Cap letter and apply a background colour to just the First letter?

Thank you.

Hi Janine,

You could give this CSS a try:

.has-drop-cap:first-letter {
    background-color: #fff;
}

Thanks, Ying.

Now how can I control the size of the first letter?

Thank you.

Try adding a line like to Ying's CSS above: font-size: 20px;

Hi.

I added the CSS, but it didn't seem to change anything.

Thank you.

Hi there,

remove the CSS provided above and try this:

p.has-drop-cap:not(:focus):first-letter{
  font-size: 60px !important;
  font-weight: 500;
  padding: 10px;
  background-color: #0920d5;
  color: #ffff;
}

Hi, David.

Beautiful. That is exactly what I was hoping for. ;-))

Thank you.

Glad to hear that!

This archived topic is closed to new replies.