Put a div behind the other

Asked

Viewed 4,599 times

3

There’s no way I can make this work. I’m using "Animate.css" to make the animations of the elements appear, but when an element is going up, at the bottom of the page for example, all the content of that section goes over the footer, leaving an "ugly" effect. But I believe that if the footer were above the div, it would not be noticeable.

Imagem que mostra o que acontece

Basically I wanted the content "come out behind" the footer. In css/html there is nothing else, only the Animate class in content, block height and color

  • 2

    Welcome, please detail your question, pictures, code, etc.

1 answer

5


add a z-index value to your footer larger than the body that is going over it.

This rule defines in which position of the Z axis your element will be, the file with the highest value will always be on top of the others

footer{
    z-index:1000;
}
  • For this I need to add position right? I’ll have to put in all the elements and fix everything again

  • Yes, but you can put relative position without the offsets and it will work

  • I just tested this before I saw the comment and it worked, but now that you said it I’m sure it will be okay. Thanks!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.