@aarsh07
Posted
Hello Rachel , How are you ?
Your solution is amazing but I will suggest that instead of using as a background img you should create a flex container then inside it you can create two div one for content and second for img and then you should use object-fit : cover property to properly cover img .
In your solution img is not showing properly that is the only thing which is not looking good , everything else is looking good .
I hope this may help you a little bit .
Marked as helpful
@rachelktyjohnson
Posted
@aarsh07 Hi AK_07! Thanks for your feedback. I have yet to find a good solution for an image that resizes nicely to a div without using background-image, so thanks for this! I will definitely give it a go.