Ask coding questions

← Back to all posts
How do I change the position of an image
GageLugo (6)

What code do I have to use to change the position of an image in html code?

Comments
hotnewtop
SixBeeps (5221)

You have to use CSS.

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}