Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2020, 02:40 AM   #1
Land_Outcast
Enthusiast
Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!
 
Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
Problem with images in ADE

Hey there, I've got this weird problem in which two images, same class, similar dimensions, both inside <p></p>, both at the end of their HTMLXs, are rendered terribly different by ADE (one is rendered the correct size, the other is minuscule).
Attached Thumbnails
Click image for larger version

Name:	Untitled-2_0002_Layer 2.jpg
Views:	159
Size:	452.3 KB
ID:	179492   Click image for larger version

Name:	Untitled-2_0003_Layer 1.jpg
Views:	162
Size:	368.5 KB
ID:	179493   Click image for larger version

Name:	Untitled-2_0001_Layer 3.jpg
Views:	145
Size:	71.1 KB
ID:	179494   Click image for larger version

Name:	Untitled-2_0000_Layer 5.jpg
Views:	154
Size:	167.6 KB
ID:	179495   Click image for larger version

Name:	Untitled-2.jpg
Views:	160
Size:	374.8 KB
ID:	179496  
Land_Outcast is offline   Reply With Quote
Old 05-25-2020, 02:51 AM   #2
Land_Outcast
Enthusiast
Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!
 
Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
Solved. Html height:100% was the culprit; though I'd like to know why.
Land_Outcast is offline   Reply With Quote
Old 05-25-2020, 03:55 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Unless you have the <img> in another element with fixed height, "height: x%" is undefined. What you probably want is "max-height: 100vh", but that's not required for ePub 2 support (i.e. don't rely on it).
Jellby is offline   Reply With Quote
Old 05-25-2020, 06:13 PM   #4
Land_Outcast
Enthusiast
Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!Land_Outcast rocks like Gibraltar!
 
Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
Of course, "height" references the height of the parent. But if it is not defined it's as good as nothing
I just tested it within a <div style="text-align:center; height:400px">, and it behaved as it should, even with the html {height:100}. I could even use a <p style="text-align:center; height:400px">. But of course, then the image dimensions would be fixed, and I don't want that.
Thank you, Jellby.
Land_Outcast is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
images not displayed in iBooks and ADE xmlgirl ePub 16 06-07-2015 06:08 AM
Altering HTML Script To Properly Display Background Images In ADE Ereaders. Turk.Turkleton Sigil 16 09-25-2012 12:34 PM
Book images show up Sony and ADE. but not on my Kobo. beautifulsoup Kobo Reader 13 01-06-2012 01:02 AM
Hyperlinked images don't work in ADE hpstricker ePub 6 11-26-2010 06:38 PM
ePub, ADE and Images puzzle pdurrant ePub 11 09-05-2009 10:02 AM


All times are GMT -4. The time now is 07:06 AM.


MobileRead.com is a privately owned, operated and funded community.