09-10-2024, 02:41 PM | #1 |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
_=""
An ebook I'm editing has some images that I wanted to be smaller. I added a width style:
Code:
<img style="width: 60%" src="images/xyz.jpg" alt=""/> Code:
<img style="width: 60%" _="" src="images/xyz.jpg" alt=""/> |
09-10-2024, 03:32 PM | #2 |
Well trained by Cats
Posts: 30,454
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I suspect this is just a glitch because of the order of attributes
You might try a ; after 60% |
09-10-2024, 03:46 PM | #3 |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
You're right. Must be more careful.
|
09-10-2024, 05:53 PM | #4 |
Guru
Posts: 752
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
|
If you haven't run across it already, a good place to learn and experiment with regex is:
https://regex101.com/ |
09-10-2024, 06:27 PM | #5 | |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
The meaning of _="" in a CSS file continues to elude. |
|
09-10-2024, 06:54 PM | #6 |
Bibliophagist
Posts: 40,609
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
May I ask if you post what the original code was that triggered this issue? I tried to generate a similar ePub (both 2 and 3) using the code you posted and did not get the oddity you showed either using calibre's ebook-editor or Sigil.
|
09-10-2024, 07:18 PM | #7 | |
Evangelist
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Code:
<div class="inline-image inline-image-size-medium inline-image-flow-center inline-image-flow-within-text inline-image-aspect-wide inline-image-without-caption inline-image-begins-section inline-image-before-element-end"> <div class="inline-image-container"> <img src="images/chapno-1.jpg" alt=""/> </div> </div> |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 12:46 PM |