: The img element should responsively resize, relative to the width of its parent element, without exceeding its original size

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Build a Tribute Page

Link to the challenge:

Not too sure of the question but maybe try playing around with

max-width:100%;
max-height:100%;

for your img tag. This should resize relative to your parent element for example a div. Hope this is helpful

usually the answer is

width:100%;
height:auto;

please provide your code so we help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.