The problem of the influence of element height on location

At first, it looked like this. The relative positioning of the child element relative to the parent element is now normal, that is, the child element is directly above the parent element. But there is a problem that the height of the child element is not fixed. The height of the child element is dynamically created based on the data returned in the background, so the height of the child element will become larger.
when it gets bigger, the child element will overwrite the parent element without positioning it directly above the parent element. How to solve this?

Mar.23,2021

height of bottom: parent element

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b399d0-2c1c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b399d0-2c1c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?