View Single Post
Old 08-25-2010, 06:48 AM   #5
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Actually, if you want this to work properly in iBooks you need to add something else. ADE-based readers will split on a soft hyphen and hide the hyphen, whereas iBooks splits and shows it (which is generally the desired behaviour, but not here).

Add the following to your css:
span.hide { visibility: hidden }

then place the following at the points where you want long urls to wrap to the next line:
<span class="hide">& shy;</span>
(again, remove the space between the '&' and the 'shy').

Last edited by charleski; 08-25-2010 at 12:33 PM.
charleski is offline   Reply With Quote