View Single Post
Old 09-20-2013, 10:08 PM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
I second what RbnJrg said. Pictures would really help solidify exactly what you are trying to fix. Code samples are also great additions when wanting help! (Feel free to substitute in bogus text if there are copyright issues).

Also, keep in mind "degrading gracefully" if floating boxes do not work on the device (think old Kindle), and also keep in mind devices which users read on can be quite small (think cellphone).

Here is a CSS floatbox that I used in one EPUB:

Code:
span.floatright, span.floatleft {
	font-size: 75%;
	font-weight: bold;
	padding-bottom: 15px;
	padding-top: 15px;
	padding-left: 15px;
	padding-right: 0px;
	width: 25%;
	float: right;
	text-indent: 0;
}
Here is sample code:

Code:
 <p><span class="floatleft">Under perfectly stationary conditions the stock of non-permanent resources would be identical with the stock of produced means of production.</span> As has already been remarked, most non-permanent resources owe their existence to the fact that they make investment possible without a temporary reduction in the income stream. All or nearly all the man-made equipment is non-permanent, and the greater part, although by no means all, of the non-permanent resources existing at any moment consists of man-made equipment. This brings us back to the relation of my definition of capital as the “stock of non-permanent resources” to the traditional one of the “produced means of production”.</p>
Here is an image of the original page:

Click image for larger version

Name:	OriginalSidebar.png
Views:	285
Size:	67.9 KB
ID:	111685

Here are images of it in action:

Click image for larger version

Name:	SigilSidebar.png
Views:	273
Size:	59.8 KB
ID:	111687 Click image for larger version

Name:	ADESidebar.png
Views:	292
Size:	68.9 KB
ID:	111688 Click image for larger version

Name:	KindleDegradationSidebar.png
Views:	276
Size:	26.5 KB
ID:	111686

I have attached the actual WIP EPUB if anyone wants to take a look at it.

Edit: Also, this might look nice combined with the textbox code I used here: https://www.mobileread.com/forums/sho...25&postcount=9

Last edited by Tex2002ans; 09-20-2013 at 10:32 PM.
Tex2002ans is offline   Reply With Quote