开发者

Is there a way to make a floating div tag take on the actual height it has from content

开发者 https://www.devze.com 2023-02-28 14:23 出处:网络
I have a floating div tag to the left and then another div tag that auto margins to the right. If I take 开发者_如何学Pythonout the contents of the right div the left div tag \"overlaps\" everything b

I have a floating div tag to the left and then another div tag that auto margins to the right. If I take 开发者_如何学Pythonout the contents of the right div the left div tag "overlaps" everything below it.

How could I go by fixing this so it doesn't overlap?!

I'll include a picture to show you how it overlaps.

Is there a way to make a floating div tag take on the actual height it has from content


"if I make the div that holds the floating div a certain height, it works fine, but I need it to adjust to the content rather then setting a height"

Have you tried a min-high of 1px mite work mite not

0

精彩评论

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