Below is my HTML setup where the left column contains scrollable content that loads as you reach the bottom of the page, while the right column will have varying amounts of content. I'm looking to keep the right column visible while scrolling through the left column without displaying any scroll bars on the left side.
The left column will always be longer than the right column.
#wrap{
width: 1000px;
}
.col{
width: 400px;
border: 1px solid #ccc;
}
#leftC{
height: 2000px;
margin-right: 20px;
float: left;
}
#rightC{
height: 500px;
}
#head{
font-size: 30px;
text-align: center;
background: #ccc;
margin-bottom: 10px;
}
#div2{
width: 450px;
overflow: hidden;
float: right;
position: relative;
}
</style>
<div id="wrap">
<div id="head">Header</div>
<div class="col" id="leftC">LEFT COLUMN</div>
<div id="div2">
<div class="col" id="rightC">RIGHT COLUMN</div>
</div>
</div>