How do I position an element relative to its parent so that when the parent resizes, the child stays in the same place?
-
With this layout:
<div class="parent"> <div class="child"></div> </div>
You want the child to maintain padding from the edges of the parent when * dynamically * resizing the parent.JavaScript Anonymous, Apr 10, 2019 -
Several options .Anonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!