Quote:
Originally Posted by il_mix
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.