DEV Community

Cover image for Images Auto-Resize
John Peters
John Peters

Posted on

Images Auto-Resize

<div>
  <img [src]="src" />
</div>
Enter fullscreen mode Exit fullscreen mode

Putting an image in a div container allows it to resize with the div, if its not in the div, then the image has a mind of its own.

JWP2021

Discussion (0)