Having developed a website with a fluid 12 column grid, I am looking to lock the position of a div in the right hand column once it reaches the top of the page (using something like StickyJs or a similar tool).
However, when the fixed position is applied, the div is removed from the DOM and it disrupts the grid structure as the div loses its parent formatting.
https://jsfiddle.net/k4r00au0/
position: fixed;
Is there a way to preserve the position and size of the div after fixing its scroll position?
I have attempted:
width: inherit;
but with no success.
Thank you in advance for any assistance, as I am a bit perplexed by this issue!