Thread: Text Colour
View Single Post
Old 03-25-2021, 01:57 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by AlexH2021 View Post
Would I be right in saying that not all E-reader software can handle text colour?
Correct.

And like the others have said:

Don't rely on color alone. Make sure to use alternate methods of emphasis as well.

Quote:
Originally Posted by AlexH2021 View Post
In Sigil I use this code;

Example - <span style="color:Crimson;"><b><i><u>North British House, Smeaton Road, Kirkcaldy</u></i></b></span>
Instead of hardcoding the color+bold+italics+underline every time...

Better to use CSS, like this:

HTML:

Code:
<strong class="crimson">North British House, Smeaton Road, Kirkcaldy</strong>
CSS:

Code:
strong.crimson {
	color: crimson;
}
This has multiple advantages:

1. The <strong> will still bold text on e-ink (and readers that override CSS).

2. This allows you to easily adjust the look of all the text in a single location—the CSS file.

Like JSWolf said, you might want to use a different font as well:

Code:
strong.crimson {
	color: crimson;
	font-family: sans-serif;
}
or you could still do your bold+italics:

Code:
strong.crimson {
	color: crimson;
	font-style: italic;
}

Last edited by Tex2002ans; 03-25-2021 at 01:59 PM.
Tex2002ans is offline   Reply With Quote