View Single Post
Old 09-21-2012, 06:24 PM   #10
Turk.Turkleton
Junior Member
Turk.Turkleton began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2012
Device: All Ereader Formats
Quote:
Originally Posted by Toxaris View Post
That is possible. You define a new background image in each new HTML file. If you want the image to differ between pages, you need to limit the pages to a new HTML file.
I'm not sure what you mean when you say "new HTML file". Here is a tutorial I found and was reading last night after you told me what to look for:

Create Rich Layer Publicationshttp://www.ibm.com/developerworks/we...pub/index.html

This tutorial provides this script (is "script" the right term?):

div[epub|type="chapter"] {
background-image: url('childrens-book-swans.jpg'),
url('childrens-book-flowers.jpg');
background-position: 100% 50%, bottom center;
background-size: 50% auto, auto auto;
background-repeat: no-repeat, repeat-x;
background-color: #fdefc2;

When you say "New HTML" are you meaning a whole new epub file and then combining a bunch of epubs into one larger epub, or adding a 2nd pic similar to the way this tutorial does with the "url('childrens-book-flowers.jpg')" line?

Sorry for my ignorance,

Turk
Turk.Turkleton is offline   Reply With Quote