01-27-2012, 12:54 PM | #1 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Anchors look like links in ADE?
When I view an epub (that I created using Sigil) in ADE, anchor text appears blue with an underline and hovering over it gives a pointer as if it were a link. Of course clicking on it does nothing. Here is an example of the code:
Quote:
|
|
01-27-2012, 03:00 PM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Actually, why would you make the 26 an anchor? If you don't want to have it blue and underlined, switch it off in the CSS.
|
Advert | |
|
01-27-2012, 03:03 PM | #3 |
Evangelist
Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
|
"<a href= ..." looks like a link to me...
Edit: Oh, just the "26." part. Last edited by DSpider; 01-27-2012 at 03:07 PM. |
01-27-2012, 04:06 PM | #4 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
Would I do the css using psudo classes? http://www.w3schools.com/css/css_pseudo_classes.asp If so, I thought pseudo classes were not a good idea for e-books. Also, there doesn't seem to be a pseudo class for just the anchor (I'm assuming because usually there is no reason to style an anchor, which is why this whole thing is so puzzling to me) BTW, I plan on using Calibre to generate a .mobi file. Having done this already, I never see any underlines when I view the anchors on the Kindle. |
|
01-27-2012, 05:39 PM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Pseudo classes are not in the specs, so support is a hit and miss, so that is definitely not a good idea. Unfortunately that is your only option I think.
Anchors are links in essence, but in your case a link to nothing That the anchor is without underlines on the Kindle does not mean anything. The format is totally different, so also the interpretation of links. |
Advert | |
|
01-28-2012, 03:53 AM | #6 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Using <a> for anchors is usually, unneeded. You can add the "id" anywhere, like this:
Code:
<h1><small id="a0.26BrahmanaVagga">26.</small> Brāhmaṇa Vagga<br /> Code:
<h1 id="a0.26BrahmanaVagga"><small>26.</small> Brāhmaṇa Vagga<br /> |
01-28-2012, 03:00 PM | #7 | |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Quote:
Thanks everyone for the information. |
|
01-28-2012, 04:28 PM | #8 |
Zealot
Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
Actually, I do have another question. Could I replace the <a id="xxx"> with <span id="xx"> and not cause any problems? There would also be some cases of empty tags, like <span id="xxx"></span>
One book has over 1,000 of these <a> anchors. |
01-29-2012, 03:19 PM | #9 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Yes, it should be fine.
You could also try with: a { text-decoration: none; color: inherit; } and then, if you want actual links to be underlined: a[href] { text-decoration: underline; } I'm not sure the'll work as intended in ADE, though. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anchors in posts? | unboggling | Feedback | 16 | 05-17-2015 03:18 PM |
Indexing links in ADE | soparch | ePub | 6 | 10-14-2011 11:25 AM |
Help Please ADE | Kiwimick | Sony Reader | 2 | 11-14-2010 06:24 PM |
Links to URLs work, internal links don't? | NewDay | ePub | 36 | 10-27-2010 04:09 AM |
Kindle - html to Kindle format - do links to anchors work? | Rasczak | Kindle Formats | 20 | 12-08-2008 03:20 PM |