How do I correctly document this in CSS?

Head out to

I'm putting together a Wordpress site for my client and I want to have a white area for the content, but only the content.

In other words, the background color of the body needs to be black. But where I have text needs to be white.

Using Firebug, I was able to locate the precise location where I want to make my change. The CSS looks like this:

<body class="home blog" itemtype="" itemscope="itemscope">
<div class="full-background">
<div class="body_wraper_box">
<header class="header-wraper">
<section id="contents" class="clearfix">
<div class="row main_content">
<div class="container content_wraper">

It's in "section id="contents" class="clear fix" - that's where I need to make by background color white.

So I head out to the css file and I can't find "contents." So I write:

#contents {
background: #fff;

...and nothing.

I'm poised on the threshold of great things, here, I know it. But I can't make the change and I don't know why.

What am I missing?
brucegustPHP DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Didn't I already give you the code for this in another question?

You probably want to add some padding to this
.container.content_wraper {
    background: #fff;

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joshua GrantomSenior Systems AdministratorCommented:
the issue is that section id="contents" gets its black background color from .body_wraper_box

Unless you change the html code of the template you will not be able to do this.

I believe he wants the entire bottom below header-wraper to be white, not just the inside content wrapper
brucegustPHP DeveloperAuthor Commented:
Gary, you did give me some code but the problem was that what I asked for didn't do the trick in that in order for my header and menu to look seamless, I had to have more than just a border. But since that's what I asked for, I gave you the credit and closed the question.

Let me try this new suggestion of yours and see if that doesn't ring the bell.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Joshua GrantomSenior Systems AdministratorCommented:
try changing

.body_wraper_box {
    background:  #FFF;

and adding

.header-wraper {
background: #000;
padding: 0 0 10px 0;
Joshua GrantomSenior Systems AdministratorCommented:
the above code does this, just choose your padding for the bottom of header-wraper

brucegustPHP DeveloperAuthor Commented:
Gary, your suggestion worked! That will do it!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.