Stefan Müller
Stefan Müller

Reputation: 284

Reducing hight of superscript in HTML by css

I have a wordpress installation and all the superscripts come out to high:

enter image description here

Is there a way to get the footnote and other material in <sup></sup> down? By some CCS I could add to the page? Thanks!

Upvotes: 1

Views: 767

Answers (2)

Tony Tin Nguyen
Tony Tin Nguyen

Reputation: 355

Instead of the default vertical-align: sup; you could change it to top and adjust the position with top and minus value;

sup { 
    vertical-align: top; 
    position: relative;
    top:  -0.2em; 
}

Upvotes: 2

Eriksen
Eriksen

Reputation: 116

Instead of sup you can use sub. But if you can't change it to a , try to add a position absolute and some margin top

// html
<p>Footnote<sup>1</sup></p>

// styles
p sup {
    position: absolute;
    margin-top: 10px;
}

Upvotes: 1

Related Questions