I need to keep buttons position in following snippet while horizontal scroll is proceed. But without fixed position usage as I want to get rid of crazy position calculations.
Thank You
<div style="position: relative; height: 100px; width: 400px; background-color: yellow; overflow: auto">
<button style="position: absolute">
must be visible all time
</button>
<button style="position: absolute; right: 0;">
must be visible all time
</button>
<div style="height: 100px; width: 600px; background-color: red">
<br>
scroll this
</div>
</div>