Solved

Background Color of Container Div

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

914 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

14 Experts available now in Live!

Get 1:1 Help Now