WordPress.org

Ready to get started?Download WordPress

Forums

background color for the content (11 posts)

  1. DEdesigns57
    Member
    Posted 1 year ago #

    I want to change the background color for the area on the site where the articles and text is posted. I looked up the html for it and tried using CSS in the following way:
    div #primary {background-color: mycolor;} but nothing happens.
    Any ideas.
    My Site: nickingoglia.com

  2. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Use a Browser Developer tool for this kind of CSS exploratory work.
    I used Google Chrome's Developer Tool and found the element, <div id="page"> that was being applied a black background colour (on right of toolbar) http://snag.gy/mkHga.jpg

  3. DEdesigns57
    Member
    Posted 1 year ago #

    Well when I try using that id and changing the background to say red. It only works on some of the pages and not all of the pages. I need a something to work on all of the pages.

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you provide a link to the webpage that does not change the background?

  5. DEdesigns57
    Member
    Posted 1 year ago #

    all of the main pages, that it: home, looking-back, going-forward, contact, plus some of the articles didn't change either.

  6. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    You may have to add !important on the end of the style;
    E.g

    background-color: red !important;
  7. DEdesigns57
    Member
    Posted 1 year ago #

    using: div#page {background-color: red important;}

    still didnt apply it to all the pages.

  8. DEdesigns57
    Member
    Posted 1 year ago #

    added the missing "!" and still same result.

  9. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Are you adding the CSS to your Custom CSS Manager plugin?

  10. DEdesigns57
    Member
    Posted 1 year ago #

    yes i am

  11. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you post here the CSS you're trying?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.