Ask coding questions

← Back to all posts
How do I center an image?
kenzielixir

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

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
OluwafunbiModup
kenzielixir
Comments
hotnewtop
Coder100

Put it inside a div:

kenzielixir

In CSS? @Coder100

Coder100

no, this is html @kenzielixir

Coder100

oh lol here, in your case it looks like:

@kenzielixir

kenzielixir

Ohhh okay. Thanks! @Coder100

Coder100
RYANTADIPARTHI

You can use some inline CSS

That should work.

kenzielixir

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

RYANTADIPARTHI

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

kenzielixir

OH wait a second
@RYANTADIPARTHI

kenzielixir

I think I can mark it as a best answer
@RYANTADIPARTHI

kenzielixir

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

RYANTADIPARTHI

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

kenzielixir

Oh lol. OKay @RYANTADIPARTHI

RYANTADIPARTHI

@kenzielixir yeah np. Thanks!

realTronsi

@RYANTADIPARTHI please stop cycle farming