Solved

Background Color of Container Div

Posted on 2011-03-16
2
297 Views
Last Modified: 2012-05-11
For some reason the the background color of the <div> 'container', which is white, isn't being respected in the browser, so the body bg color of grey is coming thru on the content portions. What am I missing here?

http://JustTheDriver.com ... It's on all the pages, not just the index.

Thanks Experts!

0
Comment
Question by:TonyT7220
2 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 35153803
Floated elements don't make their parent elements expand in height by default.

One solution would be to add this to your stylesheet:
#page_content {
  width: 100%;
  overflow: hidden;
}

Open in new window

More information: Making Elements Contain Floated Children
0
 

Author Closing Comment

by:TonyT7220
ID: 35153846
That did it, thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
css, html 6 31
How to disable this prompt, Windows 7 and IE 11.0? 18 94
Modify Table Width 6 13
CSS measurement 10 16
This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now