Ask coding questions
The title says it all. I can't figure out how to center the coin image.
Put it inside a div:
<div style="text-align: center;"><img></div>
In CSS? @Coder100
no, this is html @kenzielixir
oh lol here, in your case it looks like:
<img id = "tails" src ="img/tails.png" alt="tails" height="220px" width="240px" onclick="flipCoin1()"/>
Ohhh okay. Thanks! @Coder100
<img src="SOMETHING" style="text-align: center">
<!-- OR THIS -->
<img src="SOMETHING" style="margin-left: 10px;"
That should work.
Thanks @RYANTADIPARTHI! I can't mark this as the correct answer bc I already @Coder100's answer as the correct one. But ty!
@kenzielixir np. But you can upvote my answer. :)
OH wait a second@RYANTADIPARTHI
I think I can mark it as a best answer@RYANTADIPARTHI
It says I can mark it but it won't work..
@kenzielixir no, i meant like beside my comments, there's some number. Just click that. :)
Oh lol. OKay @RYANTADIPARTHI
@kenzielixir yeah np. Thanks!
@RYANTADIPARTHI please stop cycle farming