I’m working on a webpage (link text), but I’m having trouble with the height property in Google Chrome. If you view the page, you’ll notice that there is no background color. This is because the #mainContent has a height of 0px. In Internet Explorer, this is not the case. Does anyone have ideas?
Share
This is because the inner content is being floated. Parent elements do not take the height of floated children. Try adding
overflow: hidden;to the#mainContentcss.