How do I assign negative positioning in percentage for elements in css? -


I have a panel with the top: -138px; I want to give it in%, I tried to give a negative percentage, but it does not work.

You can do it as long as its basic element has a defined height, whether pixels or In percentage If you wander with this bela, you will see that the top attribute of the internal element is only respected if you explicitly define the container height .



Comments