Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2012, 04:55 PM   #1
Novelest
Junior Member
Novelest began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2012
Device: iPod, Nook Color, Kindle
First table row on page sometimes loses bottom margin - is this a bug?

Hello, first post here.

We're creating epubs with XSL and Ruby. I and others are seeing instances where the first table row on a page in iBooks loses its bottom margin, so the text partially overlays the text of the next row. This occurs whether the first line is first row of a table or is in a row in a table that is broken; the row can be broken across a page and it still happens. It only happens irregularly -- similar lines and rows in other locations do not show this problem. I have tried a variety of formatting on the row and on the table with CSS, but no luck. Has anyone seen this, and is there a way to prevent it (other than avoiding tables)? Or is it a bug in iBooks?

Here is a shortened HTML sample with relevant CSS entries. Would be happy to post more if it would help.

<table>
<tbody>
<tr>
<td>
<p class="last-para-in-cell">
<code class="cf ic">bind-key [key] [command]</code>
</p>
</td>
<td>
<p class="last-para-in-cell">
Creates a keybinding that executes the specified command. Can be shortened
to <code class="cf ic">bind</code>
</p>
</td>
</tr>
<tr>
<td>
<p class="last-para-in-cell">
<code class="cf ic">bind-key -r [key] [command]</code>
</p>
</td>
<td>
<p class="last-para-in-cell">
Creates a keybinding
that is repeatable, meaning
you only need to press the <code style="font-variant:small-caps" class="cf keystroke">Prefix</code>
key once, and you can press the assigned key repeatedly
afterwards. This is useful for commands where you want
to cycle through elements or resize panes. Can be shortened
to <code class="cf ic">bind</code>.</p>
</td>
</tr>
</tbody>
</table>

.simpletable {
margin-top: 1em;
margin-bottom: 2em;
border-collapse: collapse;
}

.simpletable td, .simpletable th {
text-align: left;
vertical-align: top;
padding-left: 0.5em;
padding-right: 0.5em;
}

.simpletable p.last-para-in-cell {
margin-bottom: 0pt;
}
Novelest is offline   Reply With Quote
Old 05-14-2012, 09:40 AM   #2
ukzembla
Junior Member
ukzembla began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2011
Device: Kindle
_______

Last edited by ukzembla; 05-14-2012 at 09:53 AM. Reason: Posted with the wrong account, can't delete!
ukzembla is offline   Reply With Quote
Advert
Old 05-14-2012, 09:59 AM   #3
tetragon
Junior Member
tetragon began at the beginning.
 
tetragon's Avatar
 
Posts: 1
Karma: 10
Join Date: May 2012
Location: London
Device: none
Hi,

Having similar problems, thought using valign=top was working but it turns out iBooks fails at that too. Ditto for "page-break-inside: avoid". Not much fun.

Cheers,

Alex
tetragonpublishing.com

Last edited by tetragon; 05-14-2012 at 11:31 AM.
tetragon is offline   Reply With Quote
Old 05-14-2012, 12:04 PM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Moved to the ePub forum; you're much more likely to get help there.
HarryT is offline   Reply With Quote
Old 05-14-2012, 03:23 PM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Do you encounter the same issue on ADE? If not, it is probably iBooks.
Toxaris is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
margin top, bottom, additive or not ? cybmole Conversion 5 02-16-2011 01:33 PM
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } cybmole Conversion 15 02-12-2011 12:57 PM
anyway to change Kindle top/bottom margin? cdpango Kindle Developer's Corner 2 11-28-2010 09:20 PM
Can't get rid of bottom margin in epubs ShellShock Sony Reader 3 02-11-2010 05:15 PM
calibre ignore margin-top and margin-bottom bender Calibre 2 12-11-2009 07:58 AM


All times are GMT -4. The time now is 10:17 PM.


MobileRead.com is a privately owned, operated and funded community.