I want the column 2 MainImage stick/stay on its position while scrolling and when the column 1 ended the column 2 will go with it. Also it tried the "position:stick" nothing happen maybe I missed something on my css.
.column2 {
position: sticky;
top: 10;
}
<div class="row">
<div class="column1">
<div class="row">
<div class="column">Image1</div>
<div class="column">Image2</div>
<div class="column">Image3</div>
</div>
<div class="row">
<div class="column">Image4</div>
<div class="column">Image5</div>
<div class="column">Image6</div>
</div>
<div class="row">
<div class="column">Image7</div>
<div class="column">Image8</div>
<div class="column">Image9</div>
</div>
</div>
<div class="column2">
<img src="MainImage">
</div>
</div>
2
Answers
You have to change the div order, like so:
try this hopefully it is helpful for you.