• Hi. I’m learning more and more about CSS, and am wanting to try to change the background color (appearing behind pictures/graphics/text on the page), on only one page. I tried using the “body {background-color:#b0c4de;}” either in the body section, or the head section, but all it does is change the border color all around the page.

    Couldn’t figure out which posts on the forum might apply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Depends on your theme/site. Please post a link for CSS questions.

    Thread Starter Jackflash101

    (@jackflash101)

    Alright, you can see the code I’ve added on this page on our test site:
    https://marketinganddesignmd.com/md/about

    We are using the 2011 Theme.

    As you can see, the color background change only changes the border color to greyish, instead of the color behind the text on the page.

    Thanks so much

    Where are you making these changes? You should not modify theme files – as your changes will be lost when WP is updated. To avoid that, either use a child theme or custom CSS plugin.

    Then try adding this CSS there:

    .page-id-2 #page {
        background: none repeat scroll 0 0 #FFFFFF;
    }

    Change the color to what you want.

    Thread Starter Jackflash101

    (@jackflash101)

    Thank you so much. I’ll try that. Can you recommend a custom CSS plugin?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing background color on only one page’ is closed to new replies.