@darrowv
Posted
Assalamu aleykum,
There is no reason to use clamp in this challenge. Just use width: 100% on img. Remove width and height from your main tag. And remove this img { max-width: calc(600px - 45px); }
Things such as fixed width and height are mainly just going against responsiveness.
Marked as helpful
@developerabz
Posted
@darrowv Walaykum Assalam!
Jazak Allahu Khairun, this really simplifies things. I did not know I could just set the width to 100%. I will be using this from now on haha.