-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
  • 222,134
  • 40
  • 319
  • 330
Denver
  • 105
  • 3
  • 10

2 Answers2

1

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

Vucko
  • 19,890
  • 7
  • 55
  • 105
  • 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
  • 10,884
  • 5
  • 38
  • 61