Login
Remember
IF Answers
Ask a Question

# Can you use custom CSS files with games uploaded to textadvenures.co.uk?

+1 vote
122 views
asked Jun 12 in Publishing by bg (692 points)

I released an Inform 7 game along with the Quixe interpreter and set up a custom CSS file for it in the Interpreter folder. On my computer the stylesheet works, but when I zip the release folder and upload it to textadventures.co.uk, playing it online brings up the default stylesheet.

- inform7
- textadventures-co-uk
- quixe
- css

## 1 Answer

+1 vote
answered Jun 12 by Alex (486 points)
selected Jun 12 by bg
Best answer

It should work, as long as everything's in the ZIP file you uploaded.

Make sure your CSS is using relative and not absolute paths - because uploaded games have URLs of the form `media.textadventures.co.uk/gameid/...`, so if you're linking to something like /mystyle.css then that won't work.

If you add a link to your game here I can look into it further.

commented Jun 12 by bg (692 points)
Ok, I don't know what I did differently, but after uploading a more recent version of the game, it now seems to work correctly.
commented Jun 12 by Alex (486 points)
Could have been a caching issue. Files are served using a CDN and sometimes it can be a while before it checks for a newer version of the file.

## Related questions

- Which textadventures.co.uk category would best fit a stock market-like game?
- Why is my game still "unlisted" on textadventures.co.uk?
- Twine with sugarcube: can you display visited links differently?
- How to show window background color in Quixe: background color property or text background? (Flexible Windows, Inform 7)
- Is there a way to reduce the right margin for a play-in-browser website released by Inform 7?

...