How do I change the color of a passage link in sugarcube 2.31.1

That works fine for me.

Any reasonable size will work. However, considering that it’s only ever displayed at 15x15, it’s kind of a waste of space to use an image larger than that. I’d scale it down to a 15x15 PNG and then use that.

The easiest way to test that hypothesis is to make a new story for purposes of testing that code.

Just make a new story, add that CSS to the Stylesheet, and then make a link that uses that in the passage. If that works, then you know that the problem isn’t in that code, thus it must lie elsewhere.

Another thing you could to is open the page that isn’t working in your browser, right-click on the link and choose “Inspect Element”. Then take a look at the HTML and CSS to see if you can figure out what’s going wrong there.

Questions like that are ones you should be able to answer yourself.

1 Like

Well thank you for your time!
I know you’ve given me all the correct information. There must be something in my game interfering with the code.
I will try figuring it out myself and won’t waste any more of your energy haha
I do appreciate it.

I figured out the problem and I feel so dumb.
I was seperating codes on my css sheet with back slashes to seperate them visually. and It was messing up a bunch of them.
Just speaks to my inexperience. Thank you again for your help. Im so sorry that you put so much time into it!
hopefully this post will help someone in need some day tho xD theres a lot of info for a beginner here haha

Yeah, you can’t just stick random characters in there, since it will break your CSS.

If you want to add comments to your CSS code, then you can use this format:

/* Comment goes here. */

That method of commenting code also works in JavaScript and in Twine passages, so it’s quite handy.

Anyways, glad I could help. :grinning:

1 Like