Disable moving elements when another element's display is set from none to block beside it

Disable moving elements when another element’s display is set from none to block beside it.

In this screenshot, the fileMenu’s display is none.


In the second screenshot, the fileMenu’s display is set to block.

In the second screenshot, you can see that the other elements have moved. How do I prevent that from happening?

1 Like

I solved it by setting their positions to absolute and putting a margin-top of the size of “Save” * 2 on “Upload a File”.

So, problem is solved?right
So mark it as Solution

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.