I have 2 divs, an outer div, which is the parent and child div. The outer div is family members with an indent of 20px for left and right, while the child is an absolute position with 100% width. How can I make a child who is in an absolute position be inside a parent, i.e. Respect 20px registration (inside the parent and in addition to 20px)
I made an example here: http://www.bootply.com/nyGZzTVY8v
I read about the size field, but I still don't understand how to implement it correctly. I tried to put it in the box1 class, and nothing happened, tried to put on the box2 class and nothing happened.
early.
Additional note: it must be responsive, i.e. I do not know the size of the parent div, so 100% for the child div.
source share