I’m trying to resize an image within a circle, but I can only change the size of the image and the circle together. I’m assuming this is because of border-radius, but I’m not sure else to do it.
I’m trying to turn this:
Into this:
.Nova {
width: 400px;
height: 400px;
border-radius: 50%;
overflow: hidden;
object-position: 0px 0px;
}
<img src="https://i.sstatic.net/xFBKyZNi.png" class="Nova" />
2
Answers
Something like this (but you either need a higher-resolution image, or use SVG so the quality does not drop when zoomed)
You can swap the actual img for a background and position and size that.
This snippet doubles the size and positions it at the top right. On this image that happens to be good enough to get the head and shoulders in.