Skip to content
How do I center an image?
Profile icon
kenzielixir

The title says it all. I can't figure out how to center the coin image.

You are viewing a single comment. View All
Answered by Coder100 [earned 5 cycles]
View Answer
Profile icon
RYANTADIPARTHI

You can use some inline CSS

<img src="SOMETHING" style="text-align: center"> <!-- OR THIS --> <img src="SOMETHING" style="margin-left: 10px;"

That should work.

Profile icon
kenzielixir

Thanks

@RYANTADIPARTHI
! I can't mark this as the correct answer bc I already
@Coder100
's answer as the correct one. But ty!

Profile icon
RYANTADIPARTHI

@kenzielixir
np. But you can upvote my answer. :)

Profile icon
kenzielixir

OH wait a second


@RYANTADIPARTHI

Profile icon
kenzielixir

I think I can mark it as a best answer


@RYANTADIPARTHI

Profile icon
kenzielixir

It says I can mark it but it won't work..

Profile icon
RYANTADIPARTHI

@kenzielixir
no, i meant like beside my comments, there's some number. Just click that. :)

Profile icon
kenzielixir

Oh lol. OKay

@RYANTADIPARTHI

Profile icon
RYANTADIPARTHI

@kenzielixir
yeah np. Thanks!

Profile icon
realTronsi

@RYANTADIPARTHI
please stop cycle farming