Jump to content

Topic on Extension talk:Cite

174.51.149.179 (talkcontribs)

I'm having a cosmetic / style problem with this application on my own wiki. I've noticed that the reference markers tend to mess with line height of the text. it's particularly a problem if the reference marker comes in the middle of a paragraph - the gap that the ref marker causes between that line of text and the line of text above it is comparable to the gap between normal paragraphs. This makes the text difficult to read, since it's hard discern where actual paragraph breaks are.

there has to be some kind of solution for this - I've noticed that reference markers don't alter the line height of the text at all in wikipedia, for example. any advice? I'm new to wiki platforms.

(if this needs to be somewhere else, please let me know - I just couldn't figure out where to go to ask for help)

Cavila (talkcontribs)

The usual trick is to use CSS to lower everything in superscript position (and/or possibly, to increase line spacing?). You could add something like the following to your CSS page (MediaWiki:Common.css or the css page of your user skin).

/* keep superscript and subscript text from breaking the line-spacing */
#bodyContent sup {
    font-size: smaller;
    vertical-align: baseline;
    position: relative;
    bottom: 0.33em;
}
#bodyContent sub {
    font-size: smaller;
    vertical-align: baseline;
    position: relative;
    bottom: -0.25em;;
}

See also

Reply to "line height"