How do I change the background color?

Scartell
30 Aug 2017, 19:45

Hey guys, I'm creating a game with Squiffy directly in the browser. Do you know how to change the background color to black? I'm also looking to change the text to white.


manowar
30 Aug 2017, 20:05

Behind the title directive you can put this lines with tab or four spaces

$('#output').css('background-color', 'black');
$('#output').css('color', 'white');

When you publish de game change the values of #output for body.


Scartell
30 Aug 2017, 20:34

I'm not sure how to change the output, or what to change it to.


Scartell
30 Aug 2017, 20:40

Do i need to change "output" to "body"?


Scartell
30 Aug 2017, 20:43

Also, is it possible to change the color of links?


Scartell
30 Aug 2017, 23:11

I decided not to change the colors, but thank you so much for being very helpful.


K.V.
31 Aug 2017, 03:55

Hello, Scartell!

Just for one link? Or for all of them?

<a href="http://textadventures.co.uk/create">blue link </a>

blue link

<a style="color:purple" href="http://textadventures.co.uk/create">purple link</a>

purple link

<style>
#purple > a {
  color:purple !important;
}
</style>

<div id="purple"><a id="special"  href="http://textadventures.co.uk/create">purple link</a></div>


Resources: 

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

[https://www.w3schools.com/cssref/css_selectors.asp](https://www.w3schools.com/cssref/css_selectors.asp "Click here to visit https://www.w3schools.com/cssref/css_selectors.asp")

Resources:

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

https://www.w3schools.com/cssref/css_selectors.asp


NOTE: My third link is purple while editing here, but the forum turns it back blue because the <style> is overridden by the page's CSS.


Scartell
31 Aug 2017, 17:52

Thank you.


K.V.
02 Sept 2017, 19:33

Check this out:

@title Alex Warren did this

[[one]]:
{label:1=[<span style="color:red">one</span>](@replace 1=two)}

[[two]]:
[<span style="color:green">two</span>](@replace 1=three)

[[three]]:
[<span style="color:yellow">three</span>](@replace 1=one)