How to move an absolutely positioned block to another place? For example, if

example { position: absolute; right: 0; top: 10px; }

and if i try to move it to another place

example { right: 50px; bottom: 0; }

I cannot do it because for some reason the top property is not reset and it seems to be bottom 0, but the object is still above. Why does it behave this way and how to deal with it?

  • top: auto; bottom: 0; - soledar10
  • Use interest. Not bottom: 0; , and top: 100%; - Andrey Fedorov
  • @AndreyFedorov, these are different things - vp_arth
  • Well, first you need to add a position: relative parent. - Nazar Kalytiuk
  • @ soledar10 Thank you for your help, you can make the answer show you answered correctly if you want. - Constantine Shibaev

0