Solved

Background Color of Container Div

Posted on 2011-03-16
2
303 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

724 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