View Single Post
Old 08-03-2012, 03:58 AM   #9
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: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Kaylee Skylyn View Post
I just wanted the span to identify a set of words that would have the smallcaps applied to them. Not necessarily to be the first line only (in some cases it was more sometimes less than the first line even in the original format.)
That's fine then (but possibly ugly). If you want smallcaps, you should add "font-size: 85%" or so to the span's style (or use "font-variant: smallcaps" and write lowercase letters, but this won't work in most devices).

But, with your code, the uppercase text is never more than the first line since, as JSWolf says:

Quote:
Originally Posted by JSWolf View Post
a pre will cause text to flow past the margin instead of wrap.
Remove the "white-space: pre" (and the &nbsp and it should be fine, barring bugs in a reader.
Jellby is offline   Reply With Quote