How to size an Image?

Tell us what’s happening:

I’m trying to resize my image to 100px. This is my code so far, I’ve been trying for a long time and I can not figure it out. I’m not even sure if I’m close

.smaller-image { width: 100px; }

for basic you need

img{height: auto;max-width: 100%;}

if you want select img set a class to it like

<img class="myphoto" src="">
.myphoto{height: 100px; width: 100px;}

1 Like

I figured it out thank you very much!!