![]() |
#16 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Well, you need to do several things if you plan to include a picture in a cell of a table:
1) First, you need to set the width of the cell according with the width of the image. For example, if you plan that the width of the image will be the 50% of the screen, then you'll need to set the width of the cell as 50% of the screen too. 2) After that, you'll have to give the image a width of 100% (so the image will full the width of the cell; and as the cell it has a width of 50% of the screen, then the width of the image will be also 50% of the screen). 3) To include your image in the cell you mustn't use the following code (in your .xhtml file): Code:
<td class="My_Width"> <img class="My_Img" alt="" src="../Images/your_image.jpg" /> </td> Code:
.My_Width { width: 50%; } .My_Img { width: 100%; } Code:
<td class="My_Width"> <div class="My_Img"> <img alt="" src="../Images/your_image.jpg" /> </div> </td> ![]() And regarding your issue with the table whose screenshot you attached in your last post, can you post here the code for that table? (the .html code and the .css you used). Regards Rubén EDIT: Hmmm, after studying a bit your table, I saw it has long numbers. That's a problem. You'll have to reduce the width of the first, fourth and last columns and maybe reduce a bit the cells padding. But post the code of your table and I'll be able to give you a more accurate opinion. By the way, I saw that you are building an ebook of cientific nature; do you have in it many mathematical formulas? If so, you could consider to write your epub as epub3 and to employ MathML (the alternative is to write the epub as epub2 and to employ images -.png or preferably .svg- for the formulas). Last edited by RbnJrg; 04-16-2019 at 04:43 PM. |
![]() |
![]() |
![]() |
#17 | |||
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2019
Location: Russia - Saint Petersburg
Device: none
|
Quote:
Quote:
I know it does not look very good .. but I have a lot of different tables, so I can not spend a lot of time on each ( This is another table (not the one on the screen), but it also looks bad in ADE I also attached a full epub book, maybe it will help Code:
<table class="tablemobile"> <caption>Состав пантов сибирской косули и пятнистого оленя, %</caption> <tbody> <tr> <td rowspan="2" style="text-align: center;"><span style="font-weight: bold;">Показатели</span></td> <td colspan="4" style="text-align: center;"><span style="font-weight: bold;">Панты сибирской косули</span></td> <td colspan="4" style="text-align: center;"><span style="font-weight: bold;">Панты пятнистого оленя (двухконцовые)</span></td> </tr> <tr> <td style="text-align: center;"><span style="font-weight: bold;">комель</span></td> <td style="text-align: center;"><span style="font-weight: bold;">средняя часть ствола</span></td> <td style="text-align: center;"><span style="font-weight: bold;">вершина</span></td> <td style="text-align: center;"><span style="font-weight: bold;">средняя для панта</span></td> <td style="text-align: center;"><span style="font-weight: bold;">комель</span></td> <td style="text-align: center;"><span style="font-weight: bold;">средняя часть ствола</span></td> <td style="text-align: center;"><span style="font-weight: bold;">вершина</span></td> <td style="text-align: center;"><span style="font-weight: bold;">средняя для панта</span></td> </tr> <tr> <td style="text-align: left;">Влага</td> <td style="text-align: center;">7,1</td> <td style="text-align: center;">6,8</td> <td style="text-align: center;">7,4</td> <td style="text-align: center;">7,0</td> <td style="text-align: center;">10.0</td> <td style="text-align: center;">9,5</td> <td style="text-align: center;">8,9</td> <td style="text-align: center;">9,5</td> </tr> <tr> <td style="text-align: left;">Плотное вещество</td> <td style="text-align: center;">92,9</td> <td style="text-align: center;">93,2</td> <td style="text-align: center;">92,6</td> <td style="text-align: center;">93,0</td> <td style="text-align: center;">90,0</td> <td style="text-align: center;">90,5</td> <td style="text-align: center;">91,1</td> <td style="text-align: center;">90,5</td> </tr> <tr> <td style="text-align: left;">Общая зола</td> <td style="text-align: center;">46,2</td> <td style="text-align: center;">40,8</td> <td style="text-align: center;">36,5</td> <td style="text-align: center;">39,96</td> <td style="text-align: center;">42,0</td> <td style="text-align: center;">35,2</td> <td style="text-align: center;">28,4</td> <td style="text-align: center;">35,6</td> </tr> <tr> <td style="text-align: left;">Органические вещества</td> <td style="text-align: center;">46,7</td> <td style="text-align: center;">52,4</td> <td style="text-align: center;">56,1</td> <td style="text-align: center;">53,1</td> <td style="text-align: center;">48,0</td> <td style="text-align: center;">55,3</td> <td style="text-align: center;">62,7</td> <td style="text-align: center;">54,9</td> </tr> <tr> <td style="text-align: left;">Азот общий</td> <td style="text-align: center;">4,66</td> <td style="text-align: center;">7,5</td> <td style="text-align: center;">8,21</td> <td style="text-align: center;">7,34</td> <td style="text-align: center;">–</td> <td style="text-align: center;">–</td> <td style="text-align: center;">–</td> <td style="text-align: center;">9,6</td> </tr> <tr> <td style="text-align: left;">Кальций</td> <td style="text-align: center;">16,52</td> <td style="text-align: center;">13,71</td> <td style="text-align: center;">12,7</td> <td style="text-align: center;">14,68</td> <td style="text-align: center;">14,4</td> <td style="text-align: center;">10,15</td> <td style="text-align: center;">6,04</td> <td style="text-align: center;">11,1</td> </tr> <tr> <td style="text-align: left;">Фосфор</td> <td style="text-align: center;">8,85</td> <td style="text-align: center;">7,89</td> <td style="text-align: center;">6,86</td> <td style="text-align: center;">7,49</td> <td style="text-align: center;">7.6</td> <td style="text-align: center;">5,35</td> <td style="text-align: center;">3,12</td> <td style="text-align: center;">5,92</td> </tr> </tbody> </table> Quote:
how can i write in epub3? This format can read all the readers? Thank you very much for the tips. I don't know where to turn anymore ![]() |
|||
![]() |
![]() |
![]() |
#18 | |||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, that's only for images in a table cell FOR IPAD. For all others ereaders things are simpler (a bit
![]() Quote:
![]() Quote:
Quote:
Quote:
![]() Quote:
![]() Regards Rubén |
|||||
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Dana;
I watched your epub and I made some tiny changes. Open it with ADE and tell me what you think. Still there would be some tweeks with tables but as I don't know your idiom (barely I know spanish ![]() ![]() Regards Rubén |
![]() |
![]() |
![]() |
#20 | |
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2019
Location: Russia - Saint Petersburg
Device: none
|
Quote:
I looked at the book. Everything is perfect! I do not know how to thank you!)) I am glad that there are no errors and the code was looked by an experienced person) Can I write to you if you have more questions? You have a very beautiful and neat code! Now I will do like you) No, I am a layout designer)) I work in a publishing house. Our publisher publishes books for students) Eres muy simpático! Gracias Rubén ![]() |
|
![]() |
![]() |
![]() |
#21 | |||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Dana!
Quote:
Quote:
Besides, there are others things I would change in your epub. I didn't want to do it because it seemed a lack of respect toward your work but if I were you, I would change some things regarding your embbeding fonts. I wouldn't set a font for <body> and regarding your <h> tags (you are using Arial as font for them), I'd employ the following: Code:
h1, h2, h3 { font-family: sans-serif; } Code:
p { font-family: serif; } Quote:
![]() Quote:
Quote:
![]() |
|||||
![]() |
![]() |
![]() |
#22 | ||||
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2019
Location: Russia - Saint Petersburg
Device: none
|
Buenas tardes!)
Quote:
Yes, of course, you can tell me what you think) until I made a lot of books Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#23 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#24 |
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2019
Location: Russia - Saint Petersburg
Device: none
|
|
![]() |
![]() |
![]() |
#25 |
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2019
Location: Russia - Saint Petersburg
Device: none
|
Rubén
text-transform: uppercase; in h1 does not work( What do I need to do? I do not see this style in ADE example book |
![]() |
![]() |
![]() |
#26 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Dana; good afternoon to you too (now in my country is 3:30 pm)
Quote:
![]() Quote:
![]() Quote:
Quote:
https://www.mobileread.com/forums/sh...d.php?t=273966 So, you can save your book in .docx format and then to use the Sigil plugin to generate an epub. That, or using Calibre as Harry told you. But Calibre builds epubs with a code "not so neat" to my taste. |
||||
![]() |
![]() |
![]() |
#27 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
You would do good by reading the following thread: https://www.mobileread.com/forums/sh...ad.php?t=94733 Another things you must know is that ADE supports properties that the vast majory of ereaders don't. For example, you were using: Code:
page-break-after: avoid; page-break-inside: avoid; |
|
![]() |
![]() |
![]() |
#28 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
@DanaRu - if you have Word 2007 or later, another choice would be Toxaris' ePub Tools addin for Word, it will create a pretty good epub, and hook directly into Sigil ==>> e-Book Tools - a Word add-in And it has several other useful features. BR |
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,769
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Dana;
Here I attach the last epub you uploaded with some changes. Watch them and you'll say ![]() Regards Rubén EDIT: Watch your Styles.css file to read a list of the changes I made. Last edited by RbnJrg; 04-20-2019 at 10:01 AM. |
![]() |
![]() |
![]() |
#30 | |
Member
![]() Posts: 16
Karma: 10
Join Date: Apr 2019
Location: Russia - Saint Petersburg
Device: none
|
Quote:
Hello! Thanks for the advice, I'm trying this way) |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tables | Cyberseeker | ePub | 5 | 08-29-2019 03:51 PM |
A problem with images inside tables | RbnJrg | ePub | 2 | 10-28-2013 09:09 PM |
Problem of Markdown tables syntax | c_charles | Conversion | 1 | 08-15-2013 12:56 PM |
Help! Problem with HTML tables in epubs | nazzing | ePub | 3 | 06-05-2013 10:15 AM |