Howdy, Stranger!

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

How to change text colour?

hey! i am trying to change my text colour to white but every code i use don't work.... i can change the background but i want it black...... i have tried body { background-color:black;
color:white;} ive tryed p {color:white;} :( ive been trying all day.. i am quite new to coding and im using the defalt format...... what should i do?

Comments

  • Ok first the font color all you need to do is paste this in your stylesheet
    body, tw-story
    {
      color: white;
    }
    
    to change the background color paste this in your stylesheet
    body
    {
      background-color: black;
    }
    
    and I would recommend you read the twine 2 guide since you kinda seem lost and here's the manual for the default format (harlowe) and you're welcome :smiley:
  • Harlowe sets it's default foreground and background colours (black and transparent) on the html element, the following CSS will override those defaults.
    html {
        background-color: black;
        color: white;
    }
    
Sign In or Register to comment.