Position a Div “Fixed” Vertically and “Absolute” Horizontally within a “Position:Relative” Container Div
I'm looking for a way I can create a div which will be fixed on the page vertically, so if the user scrolls down, the div stays at the same place on the page. But have it positioned absolutely horizontally, so if the users screen is narrower than my webpage, scrolling to the right or left will not cause the div to move with the screen and, in some cases, remain either half visible at the edge of the screen or off the page completely. This div must be within a "Position:Relative" Div. I'm fairly sure there is no way to assign different positions to the varying axis of a div but this is the best