View Single Post
Old 11-24-2013, 12:14 PM   #11
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Well, this is a "new" way of doing the things without using a background image. In this case Psymon, you'll have to use a SVG container. In your .html file write the following:

Code:
<body>
<div>
  <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 533 800" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
    <image height="800" width="533" xlink:href="../Images/bamboo_fence.jpg"></image>

    <text fill="red" style="font-size: 50px" text-anchor="middle" x="266.5" y="200">
      This Here

      <tspan x="266.5" y="280">Is A</tspan>

      <tspan x="266.5" y="370">Chapter Title</tspan>
    </text>

    <image height="63" width="63" x="235" xlink:href="../Images/ornament.png" y="450"></image>

    <text fill="green" style="font-size: 30px; font-style: italic" text-anchor="middle" x="266.5" y="600">By Author</text>
  </svg>
</div>
</body>
This is a screenshot of ADE:

Click image for larger version

Name:	ADE.jpg
Views:	856
Size:	57.3 KB
ID:	115689

This is a screenshot of Sigil:

Click image for larger version

Name:	Sigil.jpg
Views:	803
Size:	121.1 KB
ID:	115690

This is a screenshot of Kindle Previewer:

Click image for larger version

Name:	Kindle.jpg
Views:	876
Size:	66.3 KB
ID:	115693

I don't know how it looks in iPad since I don't have one

Below you can see my ePub.

One more thing: I changed the resolution of your "bamboo_fence" image to 800 x 533 px; take in count that. Of course, you can put the text in any place of the svg container; what I did is just an example.

Regards
Rubén

PS: I still think is better to use a background image.
PS2: WITH THIS WAY OF DOING THE THINGS, YOU MUST ALWAYS WORK WITH PIXELS, OTHERWISE YOU'LL HAVE TROUBLES IN ADE.
Attached Files
File Type: epub background_image_test_ruben.epub (67.9 KB, 522 views)

Last edited by RbnJrg; 11-24-2013 at 12:26 PM.
RbnJrg is offline   Reply With Quote