I want to show an image but only a part of it and with a full (100% width), with no overflow
This is my code and it doesn’t works:
.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" />
Sorry for the messy code, I’m on mobile.
3
Answers
This works well:
Is it what you want?
If I understood you correctly, why wouldn’t you just use the "paint" app which is on the Microsoft computers (If you have one).
If you do not have a Microsoft computer or the above does not help you, you can try the above on a different app.
Hopefully that helps you!