Skip to main content
Participant
June 16, 2017
Answered

BG color change does not work in Dreamweaver cc 2017

  • June 16, 2017
  • 2 replies
  • 1512 views

Suddenly I cannot change the BG color of my simple web page. I tried changing the external style sheet and then changing the style on the page code itself. No good. I thought it might be the browser cache but I checked the site on a neighbors computer and still the problem persists. I also cannot tile my background image all of a sudden. Did I flip some switch or something?

    This topic has been closed for replies.
    Correct answer BenPleysier

    Have a look at

    <!doctype html>

    <html>

    <head>

    <meta charset="utf-8">

    <title>Untitled Document</title>

    <style>

    body {

      padding-top: 0px;

      background: #919191 url("http://www.soundmarket.com/Images/ColoredBorder_GreyBG.jpg") no-repeat;

    }

    main {

      height: 4000px;

    }

    div.pastBGImage {

      padding-top: 3500px;

    }

    </style>

    </head>

    <body>

    <main>

    Need come content

    <div class="pastBGImage">

      <h2>Yes I see the background colour.</h2>

    </div>

    </main>

    </body>

    </html>

    2 replies

    happie_97
    Community Expert
    Community Expert
    June 16, 2017

    Bill, I agree with Ben. It is hard to help you solve this without a visual.

    Initially, to blind troubleshoot this...I was thinking that you need to make sure your CSS for body is written as ...

    body {background-color: #f00;} or whatever color you need.

    Then for the background not tiling, I was thinking you need to make sure the width and height for the container that you want to tile are large enough for tiling to happen, or that you have enough additional content in the area for it to tile, that you don't have it set not to repeat, that you have background-repeat: repeat; or many other things.

    If none of those are the solutions, then one of us will have a better picture of how to solve your problem with you once you post a snapshot of your code or a link to your site.

    BenPleysier
    Community Expert
    Community Expert
    June 16, 2017

    Please give us the link to your site.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participant
    June 16, 2017

    my site: http://www.soundmarket.com

    note that if you scroll down to the bottom, the bg image ends and white bg begins. I want to either tile the bg image down or use #919191 grey color as bg color.

    Thanks in advance.

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    June 16, 2017

    Have a look at

    <!doctype html>

    <html>

    <head>

    <meta charset="utf-8">

    <title>Untitled Document</title>

    <style>

    body {

      padding-top: 0px;

      background: #919191 url("http://www.soundmarket.com/Images/ColoredBorder_GreyBG.jpg") no-repeat;

    }

    main {

      height: 4000px;

    }

    div.pastBGImage {

      padding-top: 3500px;

    }

    </style>

    </head>

    <body>

    <main>

    Need come content

    <div class="pastBGImage">

      <h2>Yes I see the background colour.</h2>

    </div>

    </main>

    </body>

    </html>

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!