Hello @ugyentenzin, would be greatly helpful if you could format your code to make it more accessible to read.
Here’s a guide on how to format code in the forum:
Also please consider sharing a live demo, that generally would help people greatly in speeding up the debugging process
By the look of it, seems like you just placed an image element inside the body, if that’s the case, nothing is telling it to actually be centered; you are just specifying the width and height property.
Hope it makes sense
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
@ugyentenzin
The image can be aligned in center with the help of margin css property and you can set it with this : -
margin: 0 auto;
This will set the margin from top, bottom to 0 and left, right will take equal distance from both the sides i.e. left and right of image.
So, just add the same like this :