I'm trying to display a fraction in a text element, but how do I make the whole number appear in the middle vertically?

Hi there, I’m trying to display a fraction in a text element. I managed to get the fraction appear correctly, but the whole number is positioned at the bottom instead of in the middle vertically. Does anyone know how to make it appear in the middle vertically?

This is my coding stored in a Rich Text field in my collection.

3


1
2

Only in Preview mode it looks like that. On live site it’s aligned to the middle as expected.

(btw, you forgot the opening

)

OMG, you’re right! It aligns correctly on live site! Though it makes one wonder why it doesn’t during preview.

Anyway, I did include the opening

actually…

Thank you so much J.D.! It was really helpful! :slight_smile:

1 Like