Alter the font size of bold style

Hi!
Does anyone know some CSS trick that I can use on the templates to render the bold style with a specific font size?

Something like this:

.bold {
font-size: 20px;
}

Thank you.

Hi! Try this

b {
font-size: 20px;
}
1 Like

It worked. Thanks a lot. Do you happen to know one for italics too?

Sure! For italic you can either use em or i (depending on the tag that appears in the HTML)

E.g. this should cover both cases

i, em {
font-size: 20px;
}

(On a similar note, you may want to use

b, strong {
font-size: 20px;
}

instead of the solution I proposed in the last message, just to have some more versatility.)


In general, you can check the HTML and then simply use the tag name as a selector. E.g. if I wanted to add some styles to underline or strikethrough:


3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.