Skip to content

Commit

Permalink
Resize an image proportionally based on width
Browse files Browse the repository at this point in the history
  • Loading branch information
nonunicorn committed May 9, 2022
1 parent 0a60e0f commit 80af2c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions css/resize_img_proportionally.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
img.thumb { width: 50px; }
```

- img.thumb - selector for resized images
- width: 50px - setting only one dimension will automatically resize other dimension keeping aspect ratio
- `img.thumb` - selector for resized images
- `width: 50px` - setting only one dimension will automatically resize other dimension keeping aspect ratio


link_youtube: https://youtu.be/QkP0JemabVw

0 comments on commit 80af2c5

Please sign in to comment.