How to size an Image?

How to size an Image?
0.0 0

#1

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; }


#2

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;}


#3

I figured it out thank you very much!!