We help IT Professionals succeed at work.

Check out this week's podcast, "Dairy Farms to Databases: Community's Hand in Technology"Listen Now

x

How do I correctly document this in CSS?

Bruce Gust
Bruce Gust asked
on
214 Views
Last Modified: 2014-08-18
Head out to vpweddingsandevents.com.

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="http://schema.org/WebPage" 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">
</div>

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?
Comment
Watch Question

CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Joshua GrantomSystems Administrator
CERTIFIED EXPERT
Top Expert 2014

Commented:
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
Bruce GustPHP Developer

Author

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.
Joshua GrantomSystems Administrator
CERTIFIED EXPERT
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Joshua GrantomSystems Administrator
CERTIFIED EXPERT
Top Expert 2014

Commented:
the above code does this, just choose your padding for the bottom of header-wraper

snap.PNG
Bruce GustPHP Developer

Author

Commented:
Gary, your suggestion worked! That will do it!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.