Forums

How to change body color in CSS (5 posts)

  1. maxop
    Member
    Posted 11 months ago #

    Hello everyone,
    I am using magazine basic theme
    http://dexxtra.eu/detsky-textil
    And I would like to change the white body,header,footer color to this color:ebe7c8
    This is the part of the code from CSS style:
    body {
    color: #444;
    margin: 0 auto;
    font-size: 14px;
    padding: 0;
    background: #eee;
    position: relative;
    }

    I have tried to change background: #eee;, but it didnt work. Any help apprečciated. thanks

  2. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    The problem is that background is set in multiple places in the stylesheet -- for each section -- and the section specific CSS overrides the body CSS code. So you'll need to either change it in multiple places (you can use search on "background" to find the relevant ones) or try just adding this to the bottom of your stylesheet:

    #header, #mainwrapper, #footer {
        background: #eee;
    }
  3. maxop
    Member
    Posted 11 months ago #

    Thanks WPyogi
    I added up the code you wrote to the bottom - no changes, body is still white. Is there any other theme what works with e-commerce plugin and I can change there the background and body color easily?

  4. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    Where did you add it? It's not in the style.css file.

  5. maxop
    Member
    Posted 11 months ago #

    I added in the style.css file. What file am I suppose to added it?

Reply

You must log in to post.

About this Topic