@GowsalayadeviSubmitted over 2 years ago
Hi, I am not sure how to fit the image into the container in the desktop view. I would appreciate it if someone can review my code and give me the solution.
Hi, I am not sure how to fit the image into the container in the desktop view. I would appreciate it if someone can review my code and give me the solution.
Great job overall! :)
Here are a few things I would do for the image:
.img-container { /* border-radius: 0 0.625em 0.625em 0; */ background: url(https://gowsalayadevi.github.io/stats-preview-card-1603/images/image-header-mobile.jpg) no-repeat; background-size: cover; border-radius: 0 10px 10px 0; }
Remove the image from the HTML and add it as a background with background, background-size and border radius.