2 Replies Latest reply: Apr 24, 2013 11:47 PM by onefiftymph RSS

    Help adding background color to div

    onefiftymph Community Member

      On this site http://mabelspralines.com/about.html   I want to fix the bg of the container to white on each page and leave the outside bg yellow. (You can see where the bg graphic stops midway down the page)

       

      I'm helping revise some things for this lady but I don't do this much & I'm out of practice with CSS. How to find what element to edit? The original designer has a bunch of extra CSS and it seems none react to editing Background/background-color

       

      http://mabelspralines.com/styles/global.css

       

      TIA!

        • 1. Re: Help adding background color to div
          osgood_ CommunityMVP

          Set the background color of the #container to white as shown below (I've commented out /*  */ the existing background color and insert the new css rule after that.

           

          .twoColFixLtHdr #container {

              width: 800px;

              border: 1px solid #CAACF2;

              margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */

              border: 1px solid #CAACF2;

              text-align: left; /* this overrides the text-align: center on the body element. */

              /*background-color: #FAF1C6;*/

              background-color: #fff;

              background-repeat: repeat;

          }

           

           

          Is that what you want?

          • 2. Re: Help adding background color to div
            onefiftymph Community Member

            Perfect thanks Osgood! Sorry for the delay.