How to center the caption to the image?

See the Pen Tribute Page by Novum (@Novumel) on CodePen.

Read about the text-align property. But first, you need to fix a typo in several elements. There is no such element named figcuption.

Suggestion: Instead of having 3 different style selectors with the same exact properties/values, create a class with those properties and add that class to each element needing those properties/values. This avoids duplicate code and keeps your code DRY (Do Not Repeat Yourself).

I see at least 9 selectors in your CSS that would benefit from implementing what I suggest above.

1 Like

Many thanks! You helped me a lot!