07-21-2020, 02:32 AM | #16 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2020
Device: Kindle
|
It turns out the keyboard had curly quotes turned on (not my computer) - hard to see as they're just slightly slanted to the right in HTML. Now that's off and corrected to straight quotes, my original code works! But using a 300ppi image is a great recommendation for hi-res devices. Thanks all for helping.
|
07-21-2020, 09:20 AM | #17 | |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Glad you found the curly quotes but be very careful with your - it just works - statement.
Your code does NOT work....at the least, there are a few important errors you should fix.
Quote:
Here is a good recommendation that does what you say you want in a much simpler manner. Try it and see... Code:
div.image {margin: 4em auto 0; width: .5in} <div class="image"><img alt="" src="images/ne-logo100.png"/></div> |
|
07-21-2020, 02:16 PM | #18 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Do not use 2% for your margin top. That changes between different Readers. A Kindle PW4, Kobo Libra H2O, Kobo Aura H2O, Kobo Forma, and Kindle Basic, Pocketbook Inkpad X, and Pockebook Inkpad 3 Pro will all display the space differently because they all have different size screens. So 2% will be different.
Use a space like margin-top: 1em; as that will be much more consistent. % is usually not good to use. |
07-21-2020, 05:02 PM | #19 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2020
Device: Kindle
|
Thanks @Turtle91 @JSWolf for your helpful info. After much hair pulling I've given up. Deleted the bloody thing and have done with it. Unless I pay a professional, it's just not worth my time. Infuriating. I'm not really cut out for this. I'm a writer not a coder. Thanks anyway.
|
07-21-2020, 09:35 PM | #20 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Tags |
css, image, resize |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
paste cover image changes image's size | pipistrelosone | Editor | 1 | 10-07-2016 09:10 AM |
Image size | JSWolf | Feedback | 19 | 11-13-2015 05:16 AM |
Image size. | UncleIvor | ePub | 13 | 04-04-2015 04:15 AM |
Display of a png image linked to a svg image | roger64 | Editor | 6 | 03-13-2015 06:21 AM |
Image Size | benjaminsolah | ePub | 13 | 09-24-2010 11:47 PM |