How do I position an element relative to its parent so that when the parent resizes, the child stays in the same place?

  • 0
    With this layout:
    <div class="parent">
        <div class="child"></div>

    You want the child to maintain padding from the edges of the parent when * dynamically * resizing the parent.
    JavaScript Anonymous, Apr 10, 2019

  • 1 Answers
  • 0
    Several options .

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!