Solved

Background Color of Container Div

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

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