Next.js Discord

Discord Forum

How do I get every image scaled up so that it matches the background outline?

Answered
Atlantic herring posted this in #help-forum
Open in Discord
Atlantic herringOP
If I hover over the image, I've implemented a kind of outline. How do I get this image scaled up so that it perfectly matches the outline?
Answered by B33fb0n3
You can do that, by setting it's height and width to 100% and give it object-fit: cover
View full answer

3 Replies

@Atlantic herring If I hover over the image, I've implemented a kind of outline. How do I get this image scaled up so that it perfectly matches the outline?
You can do that, by setting it's height and width to 100% and give it object-fit: cover
Answer
@Atlantic herring solved?