<div class="wrapper">
<img src="https://www.w3cplus.com/sites/default/files/blogs/2020/2004/cat-toes-paw-number-paws-tiger-tabby.jpg" alt="">
</div>
@import url("https://fonts.googleapis.com/css?family=Gochi+Hand");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
background-color: #291642;
font-family: "Gochi Hand", sans-serif;
font-size: 130%;
letter-spacing: 0.1rem;
display: flex;
align-items: center;
justify-content: center;
}
.wrapper {
width: 30vmin;
min-width: 20vmin;
max-width: 80vmin;
overflow: hidden;
resize: horizontal;
border-radius: 50%;
position: relative;
}
.wrapper::before {
content: "";
display: block;
width: 100%;
height: 0;
padding-bottom: 100%;
background: #f36;
}
.wrapper img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
object-fit: cover;
object-position: center;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.