Good evening. I am learning technology for front-end programming and came across a program when setting the page size in percent. I have a DIV and within these DIV I have two more, thus:
<div class="pai">
<div class="Filho-1">
</div>
<div class="filho-2">
</div>
</div>
When I try to set a top margin for child 1 in percent, that margin is applied to the parent, but I wanted child 1 to have a margin inside the parent div.
I'll send the HTML and CSS in the pastebin and I'll attach the print to the screen.
I wanted this black square to have a margin over the green split.