1
good evening. I am learning technology for front-end programming and came across a program when setting the page size in percentage. I have a DIV and inside these DIV I have two more, getting like this:
<div class="pai">
<div class="Filho-1">
</div>
<div class="filho-2">
</div>
</div>
When I try to set a higher margin for child 1 in percentage, this margin is applied to father, but wanted son 1 to have a margin within father div.
I’ll send the HTML and CSS to the Pastebin and attach the screen print.
HTML: https://pastebin.com/LuaG5BQm CSS: https://pastebin.com/smzcGzJn
I wanted that black square to have a margin on the green divide.
Man, perfect! Thank you very much.
– Ricardo Cássio