Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2024, 07:29 AM   #1
galax
Enthusiast
galax began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Sep 2023
Device: none
Proper indexing?

Greetings,

Currently I'm in the process of creating an index, however a problem arised when it comes to reference images.

Normally an index it's created by html headers or section tags

<h2>
<section>

but when the place to index is an image it's not that clear how to use it.

I found this little post that help me use the index code:

Indexes without page numbers?

(by the way the example is wrong because it's missing the closing </a>) The post shows

Code:
<a href="#page354">
But Sigil shows errors and corrects it like this:

Code:
<a href="#page354"></a>
So let's say there's an image inside a div

Code:
<div>
<img alt="" src="../Images/imgage_01.png"/>
</div>
Where should the index tag go in order to jump to exactly that place?

a - Inside the <div> prior to the image:
Code:
<div>
<a href="#page_01"></a>
<img alt="" src="../Images/imgage_01.png"/>
</div>
b - Outside the <div>
Code:
<a href="#page_01"></a>
<div>
<img alt="" src="../Images/imgage_01.png"/>
</div>
c - Or the referencing image inside the link?

Code:
<div>
<a href="#page_01">
<img alt="" src="../Images/imgage_01.png"/>
</a>
</div>
In all these scenarios I am worried that the link tag <a> should be subject to devices default css rendering and apply some margins and rules and what not, this way upset the intended layout.

Or not, this was another question, is the linking tag <a> completely invisible during rendering? In my case I need something hidden and zero rendering.

Thanks in advance.

Last edited by galax; 08-18-2024 at 07:32 AM.
galax is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper tables galax KOReader 4 02-03-2024 10:29 AM
What would be the proper e-reader for me rainalkar Which one should I buy? 18 10-10-2013 05:39 PM
Is this a proper expression? VydorScope Writers' Corner 14 11-22-2012 07:59 PM
A proper introduction Seabound Introduce Yourself 6 09-26-2008 03:24 AM


All times are GMT -4. The time now is 06:49 PM.


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