I have a div called .side-el which I would like to have in a position: fixed; behavior, but as soon as I apply position fixed the width alternates from the right one. The ri
You can achieve it with a css alternative position: sticky
position: sticky
It acts great but the only problem is browser support (June 2018): https://caniuse.com/#feat=css-sticky
Hope it gets better soon.