I have a container div that is equal position:relativeto and squares position:absolute, because I want to play with my positions.

Like what you see, the container does not match the contents, except that the squares are located in Relative, is there a solution for this?
I don't want to just set the height for the container, because the squares are not static, so I want something that automatically resizes.
thank
source
share