xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
width: 200px;
height: 200px;
overflow: hidden;
}
.image {
position: absolute;
clip: rect(50px, 150px, 150px, 50px);
/* Top, right, bottom, left values define the cropping area */
}
</style>
</head>
<body>
<div class="container">
<img class="image" src="example.jpg" alt="Cropped Image">
</div>
</body>
</html>