Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-11-2020, 12:38 PM   #1
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
popup note images are showing in the epub

I am using kindle previewer on PC
Using this code as my link,
<a epub:type="noteref" href="#n1" style="font-size: 14pt; font-family: arial;">gender</a>, <span style="font-size: 1em;">

And this as the popup note
<aside class="hidden" epub:type="footnote" id="n1"><p style="font-size: 1em; padding-bottom: 3px;"></p>
<a href="#n1"><img alt="return" src="../Images/return.png" width="30" height="16"/></a>

The popup all works fine, but the image is showing in the ebook
Attached Thumbnails
Click image for larger version

Name:	popup_issue.png
Views:	229
Size:	35.4 KB
ID:	177078  
increase is offline   Reply With Quote
Old 02-11-2020, 01:49 PM   #2
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 315
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
No real advice, but I'd just use a unicode arrow if it were me; and since (it looks like) you're trying to hide the endnote anyway, I'm actually not sure the arrow serves much purpose. Probably I'm misunderstanding, though.
phillipgessert is offline   Reply With Quote
Advert
Old 02-11-2020, 02:25 PM   #3
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
Quote:
Originally Posted by phillipgessert View Post
No real advice, but I'd just use a unicode arrow if it were me; and since (it looks like) you're trying to hide the endnote anyway, I'm actually not sure the arrow serves much purpose. Probably I'm misunderstanding, though.
Yes it is because it is nested, so when I click on the main link, it pops up the note and I want to have an arrow on the popup to take it back to the link

Seems to be something to do with the syntax in this line
<aside class="hidden" epub:type="footnote" id="na"><h5 style="color: green;"><a href="#n1"><img alt="return" src="../Images/return.png" width="30" height="16"/></a></h5>

I got it to work when by mistake I put the same reference on two of the popup codes and the third one showed the arrow, so it needs the above code modyfying but I am not sure how
increase is offline   Reply With Quote
Old 02-11-2020, 02:33 PM   #4
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
Got it!
<aside class="hidden" epub:type="footnote" id="n1"><h5 style="color: green;"><a href="#nb"><img alt="return" src="../Images/return.png" width="30" height="16"/></a></h5>
Just swapped the references around and bingo
increase is offline   Reply With Quote
Old 02-11-2020, 06:50 PM   #5
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
False alarm I still have the problem
increase is offline   Reply With Quote
Advert
Old 02-11-2020, 06:57 PM   #6
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
Quote:
Originally Posted by increase View Post
False alarm I still have the problem
But.. this works in stylesheet
.hidden { visibility: hidden; }
increase is offline   Reply With Quote
Old 02-12-2020, 12:44 AM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,973
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by increase View Post
But.. this works in stylesheet
.hidden { visibility: hidden; }
Personally, I'd prefer:
Code:
.hidden {
    display : none;
}
Why this choice? Simply, a visibility:hidden; element will still use up space on the page, one hidden by display:none; will not. See CSS visibility Property for more information.
DNSB is offline   Reply With Quote
Old 02-12-2020, 08:51 AM   #8
increase
Connoisseur
increase began at the beginning.
 
increase's Avatar
 
Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
Quote:
Originally Posted by DNSB View Post
Personally, I'd prefer:
Code:
.hidden {
    display : none;
}
Why this choice? Simply, a visibility:hidden; element will still use up space on the page, one hidden by display:none; will not. See CSS visibility Property for more information.
Thanks, but it is in kindle previewer that i have the issue, the notes show in the main chapter and I am trying to hide them
increase is offline   Reply With Quote
Old 02-12-2020, 09:08 AM   #9
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,063
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by increase View Post
Thanks, but it is in kindle previewer that i have the issue, the notes show in the main chapter and I am trying to hide them
Some Kindle devices/apps do not support pop-up footnotes. Footnotes will show as pop-ups where they are called out on some devices. On other devices clicking on the footnote tag will take the reader to the point in the document where the footnote appears.

In either case the actual footnote is still part of the visible book content somewhere. (Typically at the very end of the book.)

Last edited by jhowell; 02-12-2020 at 11:18 AM.
jhowell is offline   Reply With Quote
Old 02-13-2020, 11:26 AM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,973
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by increase View Post
Thanks, but it is in kindle previewer that i have the issue, the notes show in the main chapter and I am trying to hide them
This may not be exactly what you want but have you considered having an endnotes file instead of placing the notes in the chapter files? The links/backlinks are easy enough to set up and you will not have the issue of the notes visible in the chapters. Easy enough to skip over the endnotes when you are finishing the book.

As for trying to hide them? That is what display:none does and it does the job without having the space where the text would be showing as a blank box. Of course, the text will also be hidden when you pop up the note. Something about cake and eating it comes to mind.

Last edited by DNSB; 02-13-2020 at 11:29 AM.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(foot)note as popup Patrick V ePub 19 09-22-2019 10:38 AM
Images now showing in ePub after editing in Sigil or Calibre postkast2929 ePub 44 04-21-2016 11:45 AM
Images not showing in ePub books jstabe ePub 4 01-01-2014 04:17 PM
Gif images not showing in epub Amalthia Conversion 9 06-07-2012 03:43 PM
Alreader not showing images after editing ePUB with Sigil cerramadre Sigil 27 09-02-2011 10:24 PM


All times are GMT -4. The time now is 11:39 PM.


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