Howdy, Stranger!

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

How do I get CSS colors to work with text?

I'm trying to make my text white and my background black. So I pulled up Kompozer, changed some colors, and it spat out this.
body {
  color: white;
  background-color: black;
}
Unfortunately, only the background seems to be working.
n875PP.png
What do I do?

Comments

  • Harlowe currently has a bug where the story content isn't contained within the body element. Beyond that, it defines the default foreground color on the html element, so that seems like a good place to put your foreground and background color properties. For example:
    html {
    	color: white;
    	background-color: black;
    }
    
    Alternatively, I believe tw-story is also a popular element for styling in Harlowe.
Sign In or Register to comment.