I have a scenario where I have two divs named left
and right
. The left
div contains a list of bullets (li
elements) and is floated to the left, while the right
div has text and HTML content. At times, either the left
or the right
div may be taller than the other due to varying content. My goal is to display only 10 li
items on the page initially, and then load more items as the user scrolls, ensuring that the height of the left
div remains less than or equal to the height of the right
div.
An illustrative image of the issue can be seen here:
https://i.sstatic.net/XkXeR.png
EDIT:
I have the option to fetch a list of 1000 li
elements from the server and toggle their display between none
and block
based on scrolling. However, I prefer not to dynamically load the li
elements from the server.
The width specifications are: #left is set at 250px
and #right is set at 750px
.