Login
Remember
IF Answers
Ask a Question

# 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?

- authoring
- inform7
- glulx
- flexible-windows
- user-styles

## 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!

## Related questions

- Using the Flexible Windows extension, how can I depict a scaled image in my graphics window?
- How do you avoid an extra line break when refreshing a window with Flexible Windows (Inform 7)?
- How do you test whether the player's interpreter will support windows created with Flexible Windows? (Inform 7)
- In Flexible Windows, is it acceptable to set, e.g., the window position at or after the start of play? (Inform 7)
- With Flexible Windows by Jon Ingold, is there a way to make the text display at the top of the window, even in Gargoyle? (Inform 7)

...