View Single Post
Old 06-16-2013, 02:53 AM   #11
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by phossler View Post
Code:
.sup {
	vertical-align: baseline;
  	position: relative;
  	top: -0.4em;
	font-size: 70%;
	line-height:0;
}
.sub {
	vertical-align: baseline;
	position: relative;
	top: 0.4em;
	font-size: 70%;
	line-height:0;
}
The subscripts (using .sub above seem to sit on the baseline, and not 'sub' to it.)
You are relying on "position: relative", that's not a very wise choice... You should use "line-height: 0" with "vertical-align: sub" and "vertical-align: super" instead, or simply with <sub> and <sup>.
Jellby is offline   Reply With Quote