Text 8 Apr 2 notes How to move sub or sup tags with css

If we want to edit the sub and sup position by default we should do something like this:

sup,
sub {
    height: 0;
    line-height: 1;
    vertical-align: baseline;
    _vertical-align: bottom;
    position: relative;
}

sup {
    bottom: 1ex;
}

sub {
    top: .5ex;
}
And we got it

  1. rabarroso posted this

Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.