View Single Post
Old 12-24-2013, 04:29 PM   #10
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
Quote:
Originally Posted by soundsfromsound View Post
If I share contents/code within an epub files, not the book text itself, is that not violating copyright laws somehow?
How would we all learn if we were not able to copy/emulate from others? It is just CSS. There is no problem with looking at the code and seeing how it works, and then ripping it right out of a book if you enjoy the look of it and want to use elsewhere!

Also, a lot of these larger publishers tend to put a HUGE "in-house" stylesheet to cover everything under the sun (and don't use 99% of it). I tend to look through those and see if I can spot any gems that I can use elsewhere.

Quote:
Originally Posted by soundsfromsound View Post
Tex, that image you shared is exactly what I want. What's the trick?
Trick? No trick!

Here is an earlier topic where someone wanted a "blog post" in their book. I attached a sample EPUB in Post #5, and images of its usage right out of the original book in post #10:

https://www.mobileread.com/forums/sho...d.php?t=218023

Here is also another book that I touched up for an author on MobileRead who was having odd formatting problems from B&N (with images + sample):

https://www.mobileread.com/forums/sho...0&postcount=54

As you can see, I just used that initial code as a base, and built up from there.

So in your case, you probably just want to use something like this in your CSS:

Code:
div.textbox {
	background-color:#D1D3D4;
	border-bottom: 3px double;
	border-top: 3px double;
	border-left: 3px double;
	border-right: 3px double;
	padding: 1em;
}
and in your book, you want this:

Code:
<p>Stuff outside the box:</p>

<div class="textbox">
<p>Everything in the box here.</p>
<p>More stuff in the box.</p>
</div>

<p>Stuff after the box.</p>

Last edited by Tex2002ans; 12-24-2013 at 04:41 PM.
Tex2002ans is offline   Reply With Quote