|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2014
Device: none
|
Hi there,
I have created some links between different parts of my book but when I open my Sigil epub in iBooks, the text I have linked to is coloured blue so it looks like a link. Is there a way to stop this happening? Just to clarify I am not talking about the link itself but rather the object of the link. Thanks! |
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Use <span> instead of <a>, or set "a {color:inherit}" in the CSS.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2014
Device: none
|
Thanks for your reply Jellby. I'm afraid you'll have to be patient with me as I don't know much about this. I haven't created a CSS file, I have just done everything automatically in Sigil. The only CSS file is the TOC one.
Could I alter the anchor CSS inline as I only have a few links or can you tell me how to simply create a CSS file with this code in it that won't affect existing settings? |
|
|
|
|
|
#4 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,325
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
But it will say 'Amateur' to anyone who looks at your code AND will be harder to maintain (update)the CSS concept is very simple: Put all the (documents with a common stylistic theme) style definitions in a single place Look at the gold colored section of your chapter file: (Ignore the fact that Sigil assigns SCC #s by first use on a per-file basis for the moment)That is what should move to the stylesheet (delete the <style> tags) and link the stylesheet (right-click the documents filename:Link...) to the file(s) While I don't really recommend working on a huge monolithic (all content) file (way to easy to really blow it ), you could:1. create your complete work, inserting Sigil split MARKERS in the proper places, as a single file. 2a. (optional) Global rename the style names (SGC#) in the <style> section to a friendly/meaningful usage name. eg CO, FP, CN, TX (I like short names )2b. Move the <style> section to a stylesheet and link the stylesheet 3.Only NOW, Execute the Split at markers (F6) command. All the SGC#s will be common to all those pieces which would NOT be the case if they were created on a per file styling use). 4. check the results visually 5)ship it
|
|
|
|
|
![]() |
| Tags |
| anchored objects, text colour |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting colour of text in QT QLabel | Agama | Development | 2 | 10-12-2013 04:28 AM |
| Manually Anchor Images to Text | drummerboy | ePub | 3 | 08-14-2012 06:36 AM |
| Removing text from an ebook | mjt57 | Conversion | 3 | 04-29-2011 03:55 AM |
| Text Colour In Comments Box 7.40 | JayLaFunk | Calibre | 9 | 01-15-2011 04:28 PM |
| Balloon pop-up text colour | Bob-El | Calibre | 4 | 09-03-2010 05:57 PM |