@eby-coder
Posted
Hi Ramita. Congrats on completing this challenge. A simple way of dealing with your sizing issue is to set the width of the card.
.qr-code {
width: 400px;
}
As you have already set the image width to 100%, reducing the width of the card would also make the image width to reduce.
You should also remove the height: 400px;
that you set for the image in your HTML file as this would increase the image size.
In addition, to further reduce the image size, you can increase the padding of the card:
.qr-code {
width: 400px
padding: 20px;
}
These should solve the problems you're having with the image size. I hope this is helpful.
Marked as helpful