Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2012, 11:32 AM   #1
Gerlyn
Enthusiast
Gerlyn began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2011
Device: Ipad
Font color for links through style sheet

I want to have different colors for links in my document. Due to background colors, the default blue is not readable all the time. I have an ID class in the style sheet to give me a new set of link styles and it works as expected in Sigil, but does not work in iBooks when tested. I have used the code !important in the style sheet which has always worked with other styles, but still ignores it.

My second question is I have created anchor links in the document. The actual anchor I have created changes to a font color of blue when viewed in iBooks. This confuses people who think its a link. What do I put in the style sheet to override that?
Gerlyn is offline   Reply With Quote
Old 11-07-2012, 12:12 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,209
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Gerlyn View Post
I want to have different colors for links in my document. Due to background colors, the default blue is not readable all the time. I have an ID class in the style sheet to give me a new set of link styles and it works as expected in Sigil, but does not work in iBooks when tested. I have used the code !important in the style sheet which has always worked with other styles, but still ignores it.

My second question is I have created anchor links in the document. The actual anchor I have created changes to a font color of blue when viewed in iBooks. This confuses people who think its a link. What do I put in the style sheet to override that?
This is really a HTML question.


a:link {
color: blue;
}

a:visited {
color: purple;
}

a:active {
color: red;
}
theducks is online now   Reply With Quote
 
Enthusiast
Old 11-07-2012, 12:43 PM   #3
Gerlyn
Enthusiast
Gerlyn began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2011
Device: Ipad
Yes that is how you would do the standard link, but was not the question. I have the above that I use, I need another set so I can use different colors that works in the epub that iBooks recognizes. It works in the Sigil program that I have used to create the book, but that is it.
Gerlyn is offline   Reply With Quote
Old 11-07-2012, 12:54 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,209
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Gerlyn View Post
Yes that is how you would do the standard link, but was not the question. I have the above that I use, I need another set so I can use different colors that works in the epub that iBooks recognizes. It works in the Sigil program that I have used to create the book, but that is it.
You need to ask in a i-books group. Sigil makes VALID EPUB's
i-books does it a think-different way

BTW you can substitute any color (even make them the same: ie black)
theducks is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print style sheet ronaldl Sigil 2 10-29-2012 04:32 PM
Alphabetize and clean a style sheet roger64 Sigil 6 06-11-2012 11:47 AM
Style Sheet editor? GraciousMe Sigil 6 06-04-2012 03:06 PM
An example file of your CSS style sheet roger64 Writer2ePub 6 04-11-2012 02:59 AM
Missing style sheet mauvais Barnes & Noble NOOK 3 12-05-2011 06:29 PM


All times are GMT -4. The time now is 11:07 AM.


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