Ask coding questions

← Back to all posts
Images too big/small
JacobMcPherson1 (239)

How do I change the size of the image using css?

Answered by Bookie0 (6281) [earned 5 cycles]
View Answer
Bookie0 (6281)

Check this out which answers your and more.

But basically, you can change it with the width and height:

img {
  width: 150px;
  height: 150px;

Good luck! :D

CodeMaster007 (108)

max-width: 100%

You can change the percentage from 100 to whatever you would like.