There is a block with overflow: hidden . Inside of which there must be an element with position: fixed , since you need it to stick to the "window" of the page, but at the same time it does not go beyond the parent. How is this possible to do?
Example : now is absolute , because the image does not go beyond, and can not stretch. It needs to be stretched to the full page. Background-position not something, an image as an example, there could be anything.
Thank.
UPDATE : clip-path: inset(0) parent works fine!
wrapper { position: relative; min-height: 1000px; width: 100%; } .container { position: relative; overflow: hidden; border: 1px solid #000; height: 250px; width: 500px; float: right; -webkit-clip-path: inset(0); clip-path: inset(0); } .inner { position: fixed; top: 0; left: 0; right: 0; bottom: 0; } <div class="wrapper"> <div class="container"> <div class="inner"> <img src="http://lukedowding.com/wp-content/uploads/BR2049-Wallpaper-Dam.png?x86078" alt=""> </div> </div> </div> 
display: flex? - nosferatu-id