How does one change the User Style for hyperlinks when using Flexible Windows?

0 votes
83 views
asked Oct 6 in Authoring by bvy

I've been setting up all the styles for text (using Table of User Styles (continued) in my source, but haven't been able to figure out the style name for hyperlinks..

I'm primarily just trying to remove the blue colour to black, to match the rest of the text - remaining underlined is fine (though not preferable).

If there's no style name for hyperlinks (which is what I'm guessing now), how would one go about changing this font colour?

1 Answer

+1 vote
answered Oct 16 by bg (692 points)

According to Draconis, hyperlink color is something that's controlled by the interpreter, not the story file.

I have not tested this, but you could try releasing along with the Quixe interpreter (see §25.11. A playable web page in the manual):

Release along with an interpreter. 

and editing the style.css file. From §25.13. Website templates:

We probably want to start from the "Standard" version of "style.css"
and edit in a few changes; the easiest way to get a clean copy of
"Standard"'s CSS file to work on is to release the project with a
"Standard" template, which causes this default "style.css" to appear
in the "Release" subfolder of the project's .materials folder. (But
it's wise to move the file out of "Release" before starting to edit it
- files in "Release" are overwritten by Inform whenever a release is made.)

Here's an example of setting hyperlink color in CSS:

http://www.w3schools.com/css/css_link.asp

If this works, then you could release your Quixe version, and that, at least, would have the font color you wanted.

Good luck!

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...