html – The picture enlarges and shrinks

Question:

How to make sure that the picture does not grow or shrink when you add percentages in the browser. If you increase or decrease the page in the browser so that the image does not change.

Answer:

Use vw and vh units for image width and height, respectively.

Scroll to Top
AllEscort