View Single Post
Old 09-28-2020, 03:49 PM   #8
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 il_mix View Post
Regarding @RbnJrg hint, I prefer a more generic approach. I can have tables, with the same format as mytable, but have just text in the first column. So, I don't want to set a specific width for the first column. I want it to stretch given the image width (if any). This way I can avoid class-ification of the tds that contain images.
More generic approach? You won't be able to get the proper with of an image if previously you don't set the width of the image container. Once you have done that (to set the width of the container), then by setting the image widh to 100% the image will be displayed with the width of your wish. You could try to enclose your image between <p> tags (and setting the width of them), neccesary to resolve a bug with some Kindles but your issue is with Kobo so I don't think that thing works. And don't use the properties "width: 100%" and "height: 100%" at the same time, otherwise your images will end distorted. By using height: 100% your image will displayed NOT WITH THE 100% of the image height, but the 100% of the container height. And what is the height of your cells? If you didn't set anything then must be 1em.

And how many tables with the same format as "mytable" you have? Give those tables another class name and your troubles are ended. Regex is your friend to do changes.

Last edited by RbnJrg; 09-28-2020 at 03:56 PM.
RbnJrg is offline   Reply With Quote