[resolved] Change Background Container On Page Only (3 posts)

  1. centraloverland
    Posted 3 years ago #


    This is my page: http://centraloverland.com/blog/?page_id=1664

    I'd like to change everything you see in white to black. For this page only.

    I learned how to add the css syntax to make the larger background gray:

    <?php if (is_page('1664') ):
    // page 1664 ?>
    <style type="text/css">
    body {background-color:#505050;}

    ...But I'm having a terrible time getting the container to comply. Any help from you syntax pros out there?

    Thanks a million!


  2. dadman
    Posted 3 years ago #

    If you add this code to the above code, beneath the body line it should do the trick.
    div#container {background-color: #505050;}
    Your white sheet will turn black, and because you add it to the above code, it will only be black at this particular page.

  3. centraloverland
    Posted 3 years ago #

    That did the trick! I see what I was doing. Totally makes sense.

    Thanks so much!

    Case closed. :)

Topic Closed

This topic has been closed to new replies.

About this Topic