Layout problem: the height of the column is equal to the column with the height set.

figure is as follows, the width and height of the left area is dynamic

width: calc(100% - 330px);
padding-bottom: 40%;
height: 0;

the width of the right side is 300px, and the height is the same as that of the left side
how to make the right column height equal to the left column height and exceed part of the scroll

codeOpen

Css
Apr.21,2022

1, get the height of the left column through js or jq, assign the height to the right column, and then exceed the setting sroll (security)

var lhenght = $('.left').outerHeight();
$('.right').css('height', lhenght+'px')

2, use flexbox (compatible)
3, grid (compatible)


it's easy to use flex

</div>
    </div>
</body>
</html>
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-1b38238-2b868.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-1b38238-2b868.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?