div does not stay below the other

0

I'm putting together a script similar to Adfly to wait 5 seconds to continue .. I'm doing well .. the problem now is that the DIV that should separate the contents of the header is on top of the content: link

In class .iframeads if I put fixed below is correct .. if I put relative above it is correct ..

The right thing to do: Image Link

But what happens is this: image link

    
asked by anonymous 27.02.2017 / 20:51

1 answer

0

Hello, Renato. I do not know if it will help, in your case, but why not use Flexbox on your site?

You could do this by setting your parent div to flex, as in the example: No html code:

<div class="container">
   <div class="item1">


   </div>
</div>

In css:

.container {
    display: flex;
 }

.item1 {
  flex-wrap: wrap; //Deixa as divs uma embaixo da outra   
 }

You can learn more about Flexbox here:

link

link

    
27.02.2017 / 23:18