View Single Post
Old 08-06-2018, 12:21 PM   #4
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,633
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Ok, now I understand. You want something like a "flex-box" but working in epub 2 and with css2. For that, you can use a "table" with only one cell or <p> or <div> tags but with the property "display: inline-block". I attach an epub with examples about how to do that and below you can see a screenshot of ADE:

Click image for larger version

Name:	Image1.png
Views:	308
Size:	108.9 KB
ID:	165462

Of course, you can play with "widths", "margins" and "paddings".

Regards
Rubén

EDIT: Althought in the epub I think the thing is clear, if you are going to use a table, then the table musn't have any width, so it will resize with the text. On the other hand, with <p> or <div> tags you can use the property "width" since the key here is to use the property "display: inline-block;".
Attached Files
File Type: epub Dinamic Table.epub (2.6 KB, 290 views)

Last edited by RbnJrg; 08-06-2018 at 03:15 PM.
RbnJrg is offline   Reply With Quote