Can anyone help with displaying only a portion of an image at full width (100%) without any overflow issues?
The code I've tried is not working:
.intro_sea {
position: absolute;
width: 101%;
clip-path: inset(30% 50% 0 0);
margin: 0;
padding: 0;
bottom: 0;
}
<img class="intro_sea" src="https://raw.githubusercontent.com/duccweb/duccweb.github.io/main/media/Untitled10_20230407161357.png" alt="huh" />
<img class="intro_sea" src="https://raw.githubusercontent.com/duccweb/duccweb.github.io/main/media/Untitled10_20230407161403.png" />
<img class="intro_sea" src="https://raw.githubusercontent.com/duccweb/duccweb.github.io/main/media/Untitled10_20230407161409.png" />
Apologies for the messy code, I'm currently using a mobile device.