WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
Superscript and Subscript (2 posts)

  1. kbad
    Member
    Posted 1 year ago #

    How do I conserve superscript and subscript when writing a post?

    In the "visual" editor, the text appears superscript/subscript when I insert <sup> or <sub> tags but when I publish the post the text is no longer sub/superscripted.

    Cheers,
    kbad

  2. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    Sorry i don't have them in the CSS, if you go to leaf options => Custom CSS => Enter something like this and save options:

    sup,
    sub {
    	font-size: 10px;
    	height: 0;
    	line-height: 1;
    	position: relative;
    	vertical-align: baseline;
    }
    sup {
    	bottom: 1ex;
    }
    sub {
    	top: .5ex;
    }

    I have not checked the style above with the theme so you might need to adjust it.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic