12-15-2013, 05:42 PM | #31 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
In your css stylesheet write: Code:
.block { width: 100%; } Code:
<div class="block">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1153 1577" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="1577" width="1153" xlink:href="../Images/flame.jpeg"></image>
</svg>
</div>
Regards Rubén |
|
12-16-2013, 06:13 AM | #32 |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
I've already tried this solution...
You don't give up easily, do you? |
12-16-2013, 06:41 AM | #33 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
width: 100%; And I don't give up until trying all available alternatives My problem in this case in that I don't have a Kobo Arc and I don't know what ccs2 and css3 properties supports your tablet so I'm trying to blind It seems not to support properties supported by ADE and that is strange. |
|
12-16-2013, 10:28 AM | #34 | |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
Quote:
Now I've tried in this way and it still breaks it, but it's good to know that there is no problem with ADE. |
|
12-16-2013, 12:38 PM | #35 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
12-16-2013, 05:30 PM | #36 | |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
Quote:
I'm not sure if you meant that but there is a "User Guides and Downloads" and a "Contact Customer Care" menu on their page (http://www.kobo.com/help) |
|
12-17-2013, 06:49 PM | #37 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
The Kobo Arc Guideline you can download in that site doesn't help. Anyway I will try once more, this time by putting the <img> inside a table-cell (a html table cell). Try this code: 1. In your .html file write: Code:
<table> <tr> <td><img alt="" src="../Images/flame.jpeg" /></td> </tr> </table> Code:
table, tr, td { width: 100%; border-collapse: collapse; border: none; } Rubén |
|
12-18-2013, 07:37 AM | #38 | |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
Quote:
I'm trying to find a way to lock the landscape orientation but I've found only for iBooks so far... |
|
12-18-2013, 02:01 PM | #39 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
It's incredible; it must be something related with your Kobo Arc. I'm going to do one last thing; I'm going to download Kobo for Android in my tablet to see if I can emule Kobo Arc and write some code that works there. |
|
12-19-2013, 04:46 PM | #40 | |
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
max-width: 100%; height: 100%; I also wrap the image in a DIV that has: text-align: center; padding: 0; margin: 0; background-color: (something fitting); ...where "something fitting" is either black or a color that blends well with the image's background. For your application, you probably won't need to worry about that. You'll probably want to set page-break-before: always; (and maybe -after as well), though. The end result should be that the image displays on its own page, at full reader height, with the width auto-adjusted to maintain the proper aspect ratio. I'm away from my computer at the moment, so that's going from memory. If it doesn't work, let me know and I'll post my complete cover page template (all 18 lines) when I get back to it. |
|
12-20-2013, 04:35 PM | #41 | |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
Quote:
This solution also breaks the image, and the problem is that even if the image fits in one page in portrait mode it breaks in landscape anyway... |
|
12-20-2013, 09:47 PM | #42 | |
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
Did you apply page breaks both before and after the DIV containing the image? |
|
01-02-2014, 12:31 PM | #43 |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
|
01-06-2014, 12:41 PM | #44 | |
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<title>Cover</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@page { margin: 0; padding: 0; }
body, div { margin: 0; padding: 0; }
body { background-color: #000000; color: #ffffff; }
div { text-align: center; page-break-after: always; }
img { height: 100%; max-width: 100%; }
</style>
</head>
<body><div>
<img alt="Cover" title="Cover" src="cover.jpeg"/>
</div></body>
</html>
|
|
01-09-2014, 12:32 PM | #45 | |
Member
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
|
Quote:
and I kinda gave up with Kobo...it works well in iBooks and it seems enough for now thank you for all of your effort |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PNG Images in ePUB Files not rendered on Kobo | DragonflyKing | ePub | 12 | 10-12-2013 09:28 PM |
Images are broken across 2 pages after converting to ePub from RTF. iPhone. | vital2k | Conversion | 2 | 05-31-2011 02:46 AM |
No images in kobo epub books? | jayupark | Kobo Reader | 8 | 03-29-2011 05:06 PM |
Multi-level TOC broken in epub->epub conversion | siebert | Conversion | 14 | 03-09-2011 06:38 PM |