Format superscript text in Divi

Nov 21, 2020 | Divi Tips

Add the following CSS code to the Divi theme options area or your child theme style.css file.

sub, sup {

  font-size: 75%;

  /* Zero out the line-height so that it doesn't

     interfere with the positioning that follows */

  line-height: 0;

  position: relative;

  vertical-align: baseline;

}

sup {

  /* Move the superscripted text up */

  top: -1.25em;

}

sub {

  /* Move the subscripted text down, but only

     half as far down as the superscript moved up */

  bottom: -0.25em;

}

Need help with this?
Hire me for a consultation and I’ll walk you thru the process.

5 star reviews
“WOW! Money WELL spent. Joseph was incredibly knowledgeable in helping me make some final tweeks to my Divi website. He was very caring and went above and beyond. Will 100% use him for any future Divi website needs.”
Claire – CMMC

5 star reviews
“You really get what you pay for with Joe. He does more than simply build a website, he sets up websites for success. Functional, clean, professional designs and he keeps up/implements the latest plugins and technology. Thank you Joe. I will continue to refer you work.”
Mark Winger

5 star reviews
“The best WordPress guy Iโ€™ve worked with on WordPress, hands-down (and Iโ€™ve worked with dozens). Remarkably good with theme customizations with a quick turn. Kept it on budget as well. A rarity with hourly contracts.”
Nate Wright

5 star reviews
“Thanks for your prompt reply. Youโ€™re always so comprehensive. If we could write another review just for your communication skills, then we would.”
Alex N

More Tips

Ask a Question

Tell me about your project. The more details the better.

"*" indicates required fields