<html> <body> <div style="position: relative; height: 700px; width: 100%;"> <div style="position: absolute; bottom: 20%; height: 17%; width: 100%;"> <div style="position: relative; width: 40%; height: 100%;"> <div style="position: absolute; top: -5px; padding-top: 5px; height: 100%; background: #000;"> </div> </div> </div> </div> </body> </html>
nie potrafię zrozumieć z jakiego powodu "najgłębszy" div ma wysokość 0 i szerokość wziętą z kosmosu.. po usunięciu position i top div wyświetla się poprawnie O.o
zależy mi na podniesieniu go o te 5px. proszę o pomoc
