Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2013, 10:31 PM   #1
gib65
Junior Member
gib65 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2013
Device: none
table in reader doesn't look like preview in Sigil

Hello,

I'm trying to edit my epub file in Sigil. I have a table that looks like the attached image to the left. At least, that's the way I want it to look. It does look that way in Sigil, but then when I upload my epub file to KDP, convert it to .mobi, then downloaded and view it, my table looks like the attached image to the right.

Below is the markup for my table as seen in Sigil. Can anyone see what needs to be changed so that the right image ends up looking like the left one?

Code:
<div style="text-align:center">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;margin:0 aut; width:98%; border-top-color:#000000; border-top-style:solid; border-top-width:1px; border-left-color:#000000; border-left-style:solid; border-left-width:1px; border-right-color:#000000; border-right-style:solid; border-right-width:1px; border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:1px;">
        <tbody>
          <tr>
            <td colspan="2" style="background-color:#999999; border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:1px; padding:7.15pt; vertical-align:middle">
              <p style="margin:0.00% 0.00%; text-align:justify"><img alt="http://www.mm-theory.com/icons/prin.gif" height="19" src="../Images/image00321.jpeg" width="12" /> <span style=" font-size:1.0rem">Principle: Computer Analogy of The Brain</span></p>
            </td>
          </tr>

          <tr>
            <td colspan="2" style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; padding:3.55pt 7.15pt; vertical-align:middle">
              <p style="margin:0.00% 0.00%; text-align:justify"><span style=" font-size:1.0rem">The brain is like a computer and its MODs are like circuits in that:</span></p>
            </td>
          </tr>

          <tr>
            <td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; padding-bottom:3.55pt; padding-top:3.55pt; vertical-align:top; width:14.25pt">
              <p style="margin:0.00% 0.00%; text-align:right"><span style=" font-size:1.0rem">1)</span></p>
            </td>

            <td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; padding:3.55pt 7.15pt; vertical-align:middle">
              <p style="margin:0.00% 0.00%; text-align:justify"><span style=" font-size:1.0rem">Logic gates permit some signals to pass through while inhibiting others</span><span style=" font-size:1.0rem">. Synapses permit some signals to pass through while inhibiting others.</span></p>
            </td>
          </tr>

          <tr>
            <td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; padding-bottom:3.55pt; padding-top:3.55pt; vertical-align:top; width:14.25pt">
              <p style="margin:0.00% 0.00%; text-align:right"><span style=" font-size:1.0rem">2)</span></p>
            </td>

            <td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; padding:3.55pt 7.15pt; vertical-align:middle">
              <p style="margin:0.00% 0.00%; text-align:justify"><span style=" font-size:1.0rem">Logical expressions can be physically represented with the activity of computer circuits. Logical thinking can be physically represented with the activity of MODs.</span></p>
            </td>
          </tr>

          <tr>
            <td style="border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; padding-bottom:3.55pt; padding-top:3.55pt; vertical-align:top; width:14.25pt">
              <p style="margin:0.00% 0.00%; text-align:right"><span style=" font-size:1.0rem">3)</span></p>
            </td>

            <td style="border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; padding:3.55pt 7.15pt; vertical-align:middle">
              <p style="margin:0.00% 0.00%; text-align:justify"><span style=" font-size:1.0rem">Computer circuits control the behavior of robots. Brains control the behavior of humans.</span></p>
            </td>
          </tr>

          <tr>
            <td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.5pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.5pt; padding-bottom:3.55pt; padding-top:3.55pt; vertical-align:top; width:14.25pt">
              <p style="margin:0.00% 0.00%; text-align:right"><span style=" font-size:1.0rem">4)</span></p>
            </td>

            <td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.5pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.5pt; padding:3.55pt 7.15pt; vertical-align:middle">
              <p style="margin:0.00% 0.00%; text-align:justify"><span style=" font-size:1.0rem">Computers process information as Boolean values (1s and 0s). Brains process information as Boolean values (neurons firing and not firing).</span></p>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
Attached Thumbnails
Click image for larger version

Name:	sigil table.jpg
Views:	117
Size:	77.6 KB
ID:	115049   Click image for larger version

Name:	mobi table.jpg
Views:	118
Size:	150.7 KB
ID:	115050  
gib65 is offline   Reply With Quote
Old 11-11-2013, 11:15 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,693
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Mobi (aka Mobipocket) does not do tables. The best way to do it for a Mobi is to use a graphic image of the table. KF8 will do tables. So you'll have to figure out the media queries to setup things so the KF8 has a real table and the Mobi has the graphic image.
JSWolf is offline   Reply With Quote
Old 11-12-2013, 08:28 AM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Plus see the thread directly above re tables in epubs. It takes a few pushes of the font size button to blow up any html table.
mrmikel is offline   Reply With Quote
Old 11-12-2013, 09:56 AM   #4
RbnJrg
Evangelist
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: 496
Karma: 318998
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by gib65 View Post
Hello,

I'm trying to edit my epub file in Sigil. I have a table that looks like the attached image to the left. At least, that's the way I want it to look. It does look that way in Sigil, but then when I upload my epub file to KDP, convert it to .mobi, then downloaded and view it, my table looks like the attached image to the right.
Do the following:

1. In your stylesheet.css file, write:

Code:
table {
   border-collapse:collapse;
   border: 2px solid black;
}

th {
   border: 2px solid black;
   line-height: 2em;
   text-align: left;
   font-weight: bold;
   padding: 0.5em 2.5em;
   background: url("../Images/Smiley.png") 0.5em center no-repeat;
   background-size: 1.5em 1.5em;
   background-color: #CCC;
}

td {
   padding: 0 15px;
}

p, li {
   text-align: justify;
}

li {
   margin-bottom: 1em;
}

2. In your .html file write:

Code:
<table>
    <tr>
      <th>Principle: Computer Analogy of the Brain</th>
    </tr>

    <tr>
      <td>
        <p>The brain is like a computer and its MODs are like circuits in that:</p>

        <ol>
          <li>Logic gates permit some signals to pass through while inhibiting others. Synapses permit some signals to pass through while inhibiting others.</li>

          <li>Logical expressions can be physically represented with the activity of computer circuits. Logical thinking can be physically represented with the activity of MODs.</li>

          <li>Computer circuits control the behavior of robots. Brains control the behavior of humans.</li>

          <li>Computers process information as Boolean values (1s and 0s). Brains process information as Boolean values (neurons firing and not firing).</li>
        </ol>
      </td>
    </tr>
</table>
This is how the table looks in ADE:
Click image for larger version

Name:	TableForMobi1.jpg
Views:	89
Size:	103.8 KB
ID:	115064

This in the .kf8 format:
Click image for larger version

Name:	screen_shot-31209.gif
Views:	77
Size:	31.3 KB
ID:	115065

and this for the old mobi format:
Click image for larger version

Name:	TableForMobi2.jpg
Views:	85
Size:	138.6 KB
ID:	115066

Below I attach the respective ePub (of course, you'll have to change the small image in the table header ).

Regards
Rubén

EDIT: It wouldn't be a bad idea to use:

Code:
p, li {
   text-align: justify;
   font-size: 80%; /* or 90% */
}
instead of only:

Code:
p, li {
   text-align: justify;
}
Attached Files
File Type: epub Table for Mobi.epub (4.2 KB, 23 views)

Last edited by RbnJrg; 11-12-2013 at 10:13 AM.
RbnJrg is offline   Reply With Quote
Old 11-12-2013, 04:50 PM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,786
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Actually old mobi (KF7) does support tables anyway. Not all of the formatting is supported and tables cannot be nested but it does support them.

by the way Sigil would have crunched the table like the solution above had you narrowed the window a bit.
DaleDe is offline   Reply With Quote
Old 11-13-2013, 12:37 AM   #6
gib65
Junior Member
gib65 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2013
Device: none
Thanks everyone. These are great solution.
gib65 is offline   Reply With Quote
Old 11-15-2013, 04:16 PM   #7
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,701
Karma: 15513561
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by DaleDe View Post
Actually old mobi (KF7) does support tables anyway. Not all of the formatting is supported and tables cannot be nested but it does support them.

by the way Sigil would have crunched the table like the solution above had you narrowed the window a bit.
Dale:

AFAIK, the very original Kindle (and the first UK Kindle) didn't (support tables) at all. Nada. And the K2 would "forget" that a table formatting existed, if a table was longer than a single page, and the table formatting would become all jumbled on the second "page" or screen. Now, I believe that the latter problem on the K2 was fixed with a firmware update, but I think the original Kindles still, to this day, don't support tables. TBH, I don't have one (I know-gasp!), so I can't test it, but that's always been my understanding.

Hitch
Hitch is offline   Reply With Quote
Old 11-15-2013, 04:40 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,786
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by Hitch View Post
Dale:

AFAIK, the very original Kindle (and the first UK Kindle) didn't (support tables) at all. Nada. And the K2 would "forget" that a table formatting existed, if a table was longer than a single page, and the table formatting would become all jumbled on the second "page" or screen. Now, I believe that the latter problem on the K2 was fixed with a firmware update, but I think the original Kindles still, to this day, don't support tables. TBH, I don't have one (I know-gasp!), so I can't test it, but that's always been my understanding.

Hitch
Interesting, must be something earlier than KF6 even. It would be good to nail this down. Pure mobi has supported tables for a long time but I never owned a K1 device.

Dale
DaleDe is offline   Reply With Quote
Old 11-15-2013, 04:57 PM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,701
Karma: 15513561
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by DaleDe View Post
Interesting, must be something earlier than KF6 even. It would be good to nail this down. Pure mobi has supported tables for a long time but I never owned a K1 device.

Dale
Well, hell...if we're gonna find one, it'll be here, most likely. I'll ask over in the K forum. Who knows? I am fairly sure...I think I had a UK customer in...2009...that had a K that couldn't display a table. And an American customer, ditto. However, my brains have rotted since then.

And I know factually, from sad experience, about the K2-page-flip issue. I still have a K2. I think it has the firmware upgrade, but I clearly recall the table formatting scrambling like eggs for an omelet once you flipped the "page" on a table. T'was a sad sight, lemme tell ya. TBH, I haven't tried any table longer than 10 rows--it's sort of our "rule," 3 columns, 10 rows as a table--since then. I mean, not for any book destined for Amazon, and they all are. I've never assumed that the original table problem was fixed all across the board.

Hitch
Hitch is offline   Reply With Quote
Old 11-15-2013, 05:11 PM   #10
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,786
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by Hitch View Post
Well, hell...if we're gonna find one, it'll be here, most likely. I'll ask over in the K forum. Who knows? I am fairly sure...I think I had a UK customer in...2009...that had a K that couldn't display a table. And an American customer, ditto. However, my brains have rotted since then.

And I know factually, from sad experience, about the K2-page-flip issue. I still have a K2. I think it has the firmware upgrade, but I clearly recall the table formatting scrambling like eggs for an omelet once you flipped the "page" on a table. T'was a sad sight, lemme tell ya. TBH, I haven't tried any table longer than 10 rows--it's sort of our "rule," 3 columns, 10 rows as a table--since then. I mean, not for any book destined for Amazon, and they all are. I've never assumed that the original table problem was fixed all across the board.

Hitch
I, too, try to keep tables on one page even on ePub for best results. Making two tables is better than a too large one.

Dale
DaleDe is offline   Reply With Quote
Old 11-15-2013, 05:28 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,560
Karma: 44291176
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DaleDe View Post
Interesting, must be something earlier than KF6 even. It would be good to nail this down. Pure mobi has supported tables for a long time but I never owned a K1 device.

Dale
It wasn't really any incarnation of the mobi format itself that didn't support tables (as you noted), but rather it seemed to be a limitation of the K1 device's rendering capabilities.
DiapDealer is online now   Reply With Quote
Old 11-15-2013, 06:32 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,701
Karma: 15513561
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by DiapDealer View Post
It wasn't really any incarnation of the mobi format itself that didn't support tables (as you noted), but rather it seemed to be a limitation of the K1 device's rendering capabilities.
Yes, as far as I know, but, man...them's some old brain cells back there that I'm trying to revive.

H
Hitch is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Table of Contents (tox.ncx) in Sigil LoabyPress Sigil 2 07-23-2012 06:19 PM
Sigil to Kindlegen -- No Table of Contents paul-b Sigil 70 05-03-2012 05:57 PM
I added in the table of contents on Sigil automa Apple Devices 7 01-30-2012 08:00 PM
Sigil doesn't respond ! JPS Sigil 4 11-05-2011 12:28 PM
Table of contents doesn't work for me Tearin de Hairou Conversion 16 08-05-2011 08:44 AM


All times are GMT -4. The time now is 01:59 PM.


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