Site logo

Archived topic

Figcaption block tag styling

1 reply · Started by Matthew on September 2, 2021

Viewing posts 1–2 of 2

For an Image (block) placed in Gutenberg the caption below it (when inspected) uses the <figcaption> tag.

It's default size is tiny so I try

figcaption {
	font-size: 23px;
}

without any change.

thanks

Hi Matthew,

The probable reason why it doesn't work is CSS precedence. Perhaps the CSS selector responsible in styling it is more specific. (has more class selectors)

You can try changing the font size to font-size: 23px !important; to see if its the case.

Also, is it for the block editor styling? If yes, make sure the CSS is added on your editor-block styles.

This archived topic is closed to new replies.