<div class="container"> <div class="col1" > Mycontent 1 </div> <div class="col2" > Mycontent 2 </div> </div>
.container { height: 300px; width: 35%; overflow-x: hidden; overflow-y: scroll; position: relative; padding-bottom: 30px; } .col1 { height: 500px; width: 300px; position: relative; float: left; } .col2 { height: 500px; width: 300px; position: relative; float:right; }
<div class="col2" önscroll="OnScroll(this)"> Mycontent 1 </div>
function OnScroll(div) { var d1 = document.getElementById("col1"); d1.scrollTop = div.scrollTop; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)