View Single Post
Old 10-02-2012, 06:17 AM   #3
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,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You can always wrap the word and superscript in a <span> with "whitespace: nowrap", but I believe that's adding clutter to work around a problem of some specific renderer (which shouldn't be inserting a linebreak at a subscript or supescript).

However (from the CSS spec):
Note. CSS 2.1 does not fully define where line breaking opportunities occur. Floated and absolutely-positioned elements do not introduce a line breaking opportunity.

This means that the renderer is not going against the spec (just against common sense), so using the span might be justified. Anyway, I wouldn't do that, I'd complain to the vendor/developer instead.
Jellby is offline   Reply With Quote