Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Background color Twine 2.0 Marlowe

I am having trouble setting a background color using the default Twine 2.0 (Marlowe, I think). Other straight html codes seem to work as in:

<html>
<body bgcolor="#E6E6FA">
<h1>Hello world!</h1>
<p><a href="http://www.w3schools.com">Visit W3Schools.com!</a></p>
</body>
</html>

I get the larger than normal black text for Hello World and the link but no background color.

Searching reveals suggestions for CSS. Anything solutions for html?

Comments

  • Harlowe! Sorry!
  • Isn't body bgcolor not supported in HTML5?

    http://www.w3schools.com/tags/att_body_bgcolor.asp
  • OK, but I still can't get a background color to register in any of the three formats that are available in Twine 2.0. Thanks.
  • The <body> tag is already used when generating the twine page and I don't think you can nest <body> tags. I'm fairly certain you have to use CSS if you want to set the background color of the entire page.
  • Try the following CSS to change the background colour of the body, it goes in your Story Stylesheet.

    body {
    background-color: #E6E6FA;
    }
    BTW: the story format is named Harlowe, you can see this by selecting either the Change Story Format option when viewing your Story's Map or by the Formats option when viewing the Stories list.
  • Thanks for that. Just what I needed
Sign In or Register to comment.