开发者

Div won't resize

开发者 https://www.devze.com 2023-04-04 01:09 出处:网络
CLOSED I made it by switching 2 of the children to absolute, because they will n开发者_开发百科ever expand, than I putted the children whom size wont change to the top and than I moved the last one u

CLOSED

I made it by switching 2 of the children to absolute, because they will n开发者_开发百科ever expand, than I putted the children whom size wont change to the top and than I moved the last one upwards by few pixels so it overlays and still can resize the parent.


Elements that are absolutely positioned do not take up any space, so changes to the number or size of the children will have no effect on the size of the parent element.

If you want the parent container to expand/contract with its children, you need to float both the container and its children.

0

精彩评论

暂无评论...
验证码 换一张
取 消