DEV Community

Cover image for Images Auto-Resize
John Peters
John Peters

Posted on

Images Auto-Resize

  <img [src]="src" />
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.


Discussion (0)