?
Solved

Background Color of Container Div

Posted on 2011-03-16
2
Medium Priority
?
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

770 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