Skip to content
← Back to Community
How do I change the position of an image
Profile icon
GageLugo

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

Voters
Profile icon
HongJunhwi
Profile icon
LILLIANSPENCER
Profile icon
AutumnBerg
Profile icon
Alex69420911
Profile icon
Mimsh
Profile icon
1ahjackson
Profile icon
19amukherji
Profile icon
HugoJ3
Profile icon
CristianSalgado
Profile icon
AlexanderJames3
Comments
hotnewtop
Profile icon
SixBeeps

You have to use CSS.

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