View Single Post
Old 09-30-2020, 07:45 PM   #11
mingsphinx
Junior Member
mingsphinx began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by theducks View Post
e-ink has no color (at least most of them)

Your idea of using a Link styling has merit for COLOR displays.
eg.
Code:
<style>
a:link {
  color: green;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}
</style>
Thank you. I have become very shy about using any styles because many eReaders will disregard the styling. My desire to explore the possibilities of the <a> tag arises from how all eReaders will treat it. As a matter of convention, all eReaders will underline a link and those that can display color will usually make the text blue. So if I enclose part of the text with the <a> tag, I can at least be certain that the portion marked off will at least be underlined for all users. The only problem is getting the href to refer to the segment of text itself because if all I do is tell the machine to go to the html file that the segment of text is stored on, anyone clicking on the link will be brought to the start of that page which is frustrating if you are in the middle of it.
mingsphinx is offline   Reply With Quote