开发者

How to Adjust Height of Column Dependent on Height of Another Element?

开发者 https://www.devze.com 2023-03-07 15:26 出处:网络
I have a sort of spacer column on the left and I actually want it to be the same height as the length of the text on that page, which obviously varies greatly from page to page.

I have a sort of spacer column on the left and I actually want it to be the same height as the length of the text on that page, which obviously varies greatly from page to page.

This is the CSS:

#sidebox {
    width:200px;
    height:2000px;
    float:le开发者_如何学Pythonft;
    padding: 5px;
    background:#f4f4f4;
    border:0;
    margin:0 10px 0 0;
}

Is this possible and if so, how can it be done?

0

精彩评论

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

关注公众号