🔥 If you are trying to align oddly sized images, set a hard width + height and then use object-fit: cover; to remove any distortion

img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}
🔥 If you are trying to align oddly sized images, set a hard width + height and then use object-fit: cover; to remove any distortion

```css
img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}
```
🔥 If you are trying to align oddly sized images, set a hard width + height and then use object-fit: cover; to remove any distortion

```css
img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}
```

Syntax Podcast

Hold on — I'm grabbin' the last one.

Listen Now →
Syntax Podcast

@wesbos Instant Grams

Beginner JavaScript

Beginner JavaScript

A fun, exercise heavy approach to learning Modern JavaScript from scratch. This is a course for absolute beginners or anyone looking to brush up on their fundamentals. Start here if you are new to JS or programming in general!

BeginnerJavaScript.com
I post videos on and code on

Wes Bos © 1999 — 2024

Terms × Privacy Policy