-1

i'm trying to add another div to my site and for some reason i can not it, ive added the div and css but its not affecting the result.

Here is a jsfiddle: http://jsfiddle.net/N8yyz/embedded/result/

Html:

<div id="fourthsection1">


</div>

css:

#fourthsection1{
    width:100%;
    height:500px;
    background-color: blue;
}
user229044
  • 232,980
  • 40
  • 330
  • 338
Denver
  • 105
  • 3
  • 10

2 Answers2

1

Try to add a div with style="clear:both" after thirdsubsection1&2 !

Vucko
  • 20,555
  • 10
  • 56
  • 107
  • After floating you must clear the areas whom were floated. http://www.w3schools.com/cssref/pr_class_clear.asp – Vucko Nov 05 '12 at 23:16
0

I have been able to fix this by adding overflow:hidden to the container element inside #thirdsection on chrome.

A better solution would be to use clearfix. I would take a look at this question for ideas.

Community
  • 1
  • 1
Undefined
  • 11,234
  • 5
  • 37
  • 62