09-10-2024, 01:41 PM | #1 |
Evangelist
Posts: 403
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, 02:32 PM | #2 |
Well trained by Cats
Posts: 30,403
Karma: 58055234
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% |
Advert | |
|
09-10-2024, 02:46 PM | #3 |
Evangelist
Posts: 403
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
You're right. Must be more careful.
|
09-10-2024, 04:53 PM | #4 |
Guru
Posts: 746
Karma: 1077122
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, 05:27 PM | #5 | |
Evangelist
Posts: 403
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
The meaning of _="" in a CSS file continues to elude. |
|
Advert | |
|
09-10-2024, 05:54 PM | #6 |
Bibliophagist
Posts: 39,789
Karma: 154147706
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, 06:18 PM | #7 | |
Evangelist
Posts: 403
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> |
|
Thread Tools | Search this Thread |
|
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 11:46 AM |