Skip to content
Sign UpLog In
Profile icon

Kenzie

@kenzielixir
Hi person who’s reading this! You’re an amazing human (or robot, how am I supposed to know what you are?πŸ˜‚) and I hope you have a great day!
  • Magic-8-Ball The Right One

    Cover page
    Made with HTML, CSS, JS

    I don't really know what happened, but there's 2 of the same repls now...

    Recent comments (0)
  • EYStreemKnowledgeQuiz

    Cover page
    Made with HTML, CSS, JS

    This is the completed one. DO THIS ONE

    Recent comments (0)
Repls
Community
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
How do I center an image?
The title says it all. I can't figure out how to center the coin image.
Coin-Flip Bet
HTML, CSS, JS
RYANTADIPARTHI
RYANTADIPARTHI
You can use some inline CSS <img src="SOMETHING" style="margin-left: 10px;" That should work.2 years ago
Coder100
Coder100
Put it inside a div: `2 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
I need some simple code to help get my event listener working. I don't know what code to run though..
Coin-Flip Bet
HTML, CSS, JS
RYANTADIPARTHI
RYANTADIPARTHI
For an image, you can use onclick or onpress2 years ago
badst
badst
Why use an EventListener when you can just use onclick? So: `2 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
I am working on a Magic 8 Ball project and am almost complete. But I noticed that when I click the 8 Ball twice for the same question, the first respo
Magic-8-Ball The Right One
HTML, CSS, JS
Coder100
Coder100
.innerHTML = '' `2 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
It's this Magic 8 Ball again... I want to make a span tag pop up underneath the "Ask Me A Question" text that says to input a question, but only if th
Magic-8-Ball The Right One
HTML, CSS, JS
Coder100
Coder100
Ohh, quite easy actually, you can use the value attribute :) if (document.getElementById('type').value == '') { // add code here } `2 years ago
Baconman321
Baconman321
I asked how it was, and it said "Unfortunately, yes" XD. anyways, just check if the input is empty, then append a span to the body of the html page. just check if document.getElementById('id-of-element').value === ''; Also, do you want more than two responses to show up at the same time, or just want one response at a time I'm confused. Edit: Ohh, I see. However, I get all 8 responses, so it's fine?2 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
I'm still working in this Magic 8 Ball project, and I can't figure out how to make one of my eight span tags pop up if their random number is selected
Magic-8-Ball The Right One
HTML, CSS, JS
Coder100
Coder100
fixed repl (click the 8 and you will see it work, but part of it is not working because of your logic.)2 years ago
Coder100
Coder100
Also, this is invalid: document.getElementById("ball").addEventListener = ("click", talkBack) What you want is: document.getElementById("ball").addEventListener("click", talkBack) `2 years ago
Coder100
Coder100
btw you have an extra } on line 412 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
I'm working on a Magic 8 Ball project and I'm trying to figure out how to make a circle shaped button with an 8 inside of it. The issue is is that I c
Coder100
Coder100
Use width and height properties instead of padding. #ball { border-radius: 100%; font-size: 500%; width: 200px; height: 200px; background-color: black; color: white; cursor: pointer; } `2 years ago
RayhanADev
RayhanADev
Hello @eystreemfan Here lemme whip something up for you. This is my jam! It may take me a minute...2 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
I'm working on a project and can't remember how to center an image...
kenzielixir
kenzielixir
Oh wow my code was messed up... Thanks for the help and corrections!2 years ago
InvisibleOne
InvisibleOne
In the css: img { text-align: center; margin: auto; } you can also try: body { text-align: center; } which will center everything on the page2 years ago
Coder100
Coder100
position absolute? idk anyways your html is super messed up, replace it to: css #magic8 { position: absolute; top: calc(50% - 110px); left: calc(50% - 115px); } `2 years ago
kenzielixir
kenzielixir
shared a Post
β€’2 years ago
I'm making a quiz and don't know if it is possible to make an increment operator that adds 11 each time. Is this possible? If it is, what do I do?
EYStreemKnowledgeQuiz
HTML, CSS, JS
kenzielixir
kenzielixir
Thanks! Just to make sure I did it right, did I put the (variable += 11;) code in the right spots?2 years ago
Coder100
Coder100
Very easy! variable += 11; `2 years ago