View Single Post
Old 11-16-2014, 08:55 AM   #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,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Psymon View Post
Oh, thank you (once again!), Rubén! Indeed, that does seem to work out just fine! I was worried that I was going to have to do something really major (like not use tables at all -- eek!), but that should be fairly easy to change.
You are welcome!

Quote:
So I gather what you're saying is to use styles to set the column width, rather than that <colgroup> method? It's funny, but I'd never even heard of that <colgroup> tag until I did this, and I forget where I saw it, but I think I read somewhere that that was the way to do it for ebooks -- but obviously it doesn't quite work.
To use the <colgroup> tag to set the columns width of a table is valid method, except in ADE And since you were looking for a way that not only worked in iPad but also in ADE, we need to prescind from <colgroup> and to use styles.

Quote:
As for centering the table, what you did for this particular table worked out just fine, but I have so many other tables, each all a little "weird" in their own way, and there are some that I wish I could just have centered on the page if the viewing area is wide (for example, single-page landscape), but if necessary could be 100% the width of the screen if it's not-so-wide.

Or, to put it another way, I just wish there was a simple, stupid <center> tag, like there used to be!

Is there no way to have an item -- like a table -- and just have it "center" on the page, but without having to do it by setting a specific margin size? Like, just center the stupid thing, and if it needs to be 100% wide, then it just is, and if it doesn't then it just adjusts itself?
No I could think some code that would work in iPad in order to get what you want. But the problem here is that you want something that ALSO works in ADE. And regrettably, ADE is quite limited As I see the things, set the tables width to 100% (or 95% with a left margin of 2.5% in order to get some indent) and forget to center them. With the columns width issue fixed, your tables will look fine

Regards
RbnJrg is offline   Reply With Quote