00070: superscripts and subscripts produc uneven line spacing

Summary: superscripts and subscripts produc uneven line spacing
Created: 2004-10-04 01:53
Status: Closed -- added to Cookbook
Category: Feature
From: jr
Priority: 4
Version: pmwiki 2 dev 11
OS: most browsers

Description: Normally, browsers display running prose with even line spacing. However, if the text happens to include superscript or subscript text, then most browsers render this with uneven line spacing. This looks ugly and distracts the reader from the content.

The solution is to add the following to the style sheet:

    #wikitext { line-height: 1.3em; }
    #wikitext sub, #wikitext sup { line-height: 0; }

The value of 1.3 em is about the minimum one can use.

I thought about making this a default in the stylesheet, but I decided that in the general case this may be properly left to the browser or site administrator to implement, rather than making it a PmWiki default. The above information probably belongs in a Cookbook entry, however. (And if there's enough clamor for a global change then I'll make it a PmWiki default.) --Pm

Added to Cookbook.SuperscriptLineSpacing. --Pm