@KevinPowell
  @KevinPowell
Kevin Powell | A better image reset for your CSS @KevinPowell | Uploaded November 2023 | Updated October 2024, 1 hour ago.
One of the most common resets in CSS is to set a max-width: 100% and a display: block on our images. In this video, I look at why it might also be a good idea to declare background-size, font-style, and shape-margin, among other things.

πŸ”— Links
βœ… Harry Roberts post on Twitter: twitter.com/csswizardry/status/1717841334462005661
βœ… Harry's article on low-quality image placeholders: csswizardry.com/2023/09/the-ultimate-lqip-lcp-technique
βœ… More on shape-margin and shape-outside: youtube.com/watch?v=sifXs4XVK7g

⌚ Timestamps
00:00 - Introduction
00:50 - max-width
01:50 - vertical-align: middle
03:50 - height: auto
04:20 - font-style: italic
05:35 - background-size and background-repeat
09:29 - shape-margin

#css

--

Come hang out with other dev's in my Discord Community
πŸ’¬ discord.gg/nTYCvrK

Keep up to date with everything I'm up to
βœ‰ kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
πŸ“Ί twitch.tv/kevinpowellcss

---

Help support my channel
πŸ‘¨β€πŸŽ“ Get a course: kevinpowell.co/courses
πŸ‘• Buy a shirt: teespring.com/stores/making-the-internet-awesome
πŸ’– Support me on Patreon: patreon.com/kevinpowell

---

My editor: VS Code - code.visualstudio.com

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Twitter: twitter.com/KevinJPowell
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
A better image reset for your CSSCan I recreate this tucked-corner photo effect with CSS?A flexbox trick to improve text wrappingJavaScript Promises Crash CourseA great way to keep up with front-end developmentUse this instead of white-space: nowrapOne line of CSS for better typographyTrue parallax with css-onlyCSS animations just got a lot more powerful5 useful resources for front-end devs:nth-child() has an amazing upgrade not enough people are talking aboutOne of the most common CSS issues people run into

A better image reset for your CSS @KevinPowell

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER