• Resolved locoleader

    (@locoleader)


    Hi
    I used the following code to change the background color of my site.

    .site {
                 background-color: #fce8fc;
             }

    But I want my homepage’s background to be another color (white). I used the following code for this, but it didn’t work.

    body.home {
                 background-color: white;
             }

    if i delete the first code, this code works but both do not work together. Where am I doing wrong?

    • This topic was modified 2 years, 9 months ago by Yui. Reason: moved to fixing wordpress

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • .site {
        background-color: #fce8fc;
    
    body.home .site {
        background-color: white;
    }
    Thread Starter locoleader

    (@locoleader)

    thank you very much. At first the codes you wrote were giving red error but when I closed the first code (with this: “}” ) it worked fine.

    • This reply was modified 2 years, 9 months ago by locoleader.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘change the background color of a single page’ is closed to new replies.