04-09-2019, 04:52 AM | #1 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Looking for old thread about images "side-by-side"
I vaguely remember a thread about displaying images side-by-side, by using display: table-cell, and the two adjacent cells would dynamically adjust to the image widths. I was hoping for some details of how to tweak such.
Unfortunately my pitiful search skills have not tracked it down. Senior moments all day today! Does anybody remember this? |
04-09-2019, 07:46 AM | #2 | |
Wizard
Posts: 1,567
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
https://www.mobileread.com/forums/sh...4&postcount=21 That was for Kindle. If you are planning to use it in epub, use a real table. Post again if you have some issues to implement that (with real tables). Regards Rubén Last edited by RbnJrg; 04-09-2019 at 07:48 AM. |
|
Advert | |
|
04-09-2019, 09:05 AM | #3 |
Guru
Posts: 660
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
(If I may hijack the thread a bit... Every now and then I take a peek into some of the books in the library (mostly by GrannyGrump) to learn and get inspiration how to do things. But I have yet to find any that contains plenty of images in various sizes used in different ways. Any tips?)
|
04-09-2019, 06:16 PM | #4 | |
Wizard
Posts: 1,567
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
https://www.mobileread.com/forums/sh...ad.php?t=48377 And all other books from Jerome are full illustrated. Granny did a great job with them. But you only will be able to do magic with images only by working with epub3 and css3: https://www.mobileread.com/forums/sh...d.php?t=315647 Last edited by RbnJrg; 04-09-2019 at 06:19 PM. |
|
04-09-2019, 10:14 PM | #5 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Thank you Rubén. I said the day was full of senior moments, I guess it was even more severe than I thought.
@patrik -- If you are working with epub2, take a look at Jellby's "Tom Sawyer" for some creative css (I stole some of his ideas to use for "Huckleberry Finn" and "Roughing It") https://www.mobileread.com/forums/sh...d.php?t=135679 |
Advert | |
|
04-10-2019, 12:52 AM | #6 | |
null operator (he/him)
Posts: 20,650
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
04-10-2019, 03:12 AM | #7 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Oh, this is great! We can just plug ourselves into chargers, and Bob's yer uncle.
Where can I sign up? |
04-10-2019, 05:35 AM | #8 |
Guru
Posts: 660
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
(Thank you kindly RbnJrg and GrannyGrump! )
|
04-10-2019, 07:39 AM | #9 |
Wizard
Posts: 1,567
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
04-10-2019, 08:15 AM | #10 |
null operator (he/him)
Posts: 20,650
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
04-15-2019, 12:11 PM | #11 | |||||
Enthusiast
Posts: 47
Karma: 10
Join Date: Jun 2018
Location: UK
Device: Android, iPad, iPod, kindle {keyboard,fire7,hdx8.9} kobo, Sony PRS 600
|
@GrannyGrump:
Hello young lady I'm the OP who had the question about images appearing differently in the Kindle previewers 2.9 and 3.29 (some time ago), which led to Rubén handing me the solution on a silver platter: using CSS tables. For the moment I've decided to use this in the Kindle HTML _only_, as it's not _needed_ for EPUBs and, due to Adobe Digital Editions (ADE) readers blowing a fuse when faced with @media queries, it would actually be a limitation when using small screens such as early smartphones. I now use full width images by default, and "only" readers reacting appropriately to @media queries see code that displays images in CSS tables for screens that are wide enough (I say "only", but in fact it works on most of the readers I tried). In my Kindle CSS file I first have the full width image code, followed by @media queries. This works well on the devices I have access to and in both previewers 2.9 and 3.29.1. For EPUBs I use a secondary CSS file because of ADE. As soon as ADE sees a @media query it ignores the file completely. If I use CSS tables without @media queries ADE 3.0 totally destroys the display (it overlays all the images into a neat stack so that you see only the topmost two images and possibly fragments of the others depending on their size), and ADE 4.5 did something else that requires either a thick skin or a lot of good natured humour. So here's the HTML code, first for EPUBs followed by Kindle's: EPUB: Quote:
Quote:
Both use some utility classes such as .stblkfbl (floats an object to the left), .stblkfbr (floats right) and .stimgfit (fits an image to 100% of its wrapper. For the sake of brevity I have removed some of the settings such as margins etc. EPUB CSS: Quote:
Quote:
Quote:
|
|||||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library doesn't work, eInk side stuck with "Home" screen | andr2k | enTourage eDGe | 4 | 08-04-2012 08:37 AM |
"The Third Side" - Battle for the Solar System, Book 2 | StephenJSweeney | Self-Promotions by Authors and Publishers | 10 | 09-01-2011 02:59 AM |
Side by side images - argh. | LostSock | Sigil | 7 | 07-22-2011 10:21 AM |
converting to "same" format - any side effects? | cybmole | Calibre | 17 | 09-20-2010 07:16 AM |