I have a problem when I hover my article with class=”card” name inside my div class=”container”, it looks like the article overlaps the nav. How do I fix this without removing my transform scale in .card:hover? I want to make it without overlapping with the nav when I hover over it. If…
Tag: html
Another stopwatch using JS?
The code is creating a responsive page. But every time I press stop and then start again the countdown speeds up. Seconds pass like milliseconds and mins pass like seconds after about 10 or so stops and starts. What might be the issue here? P.S. I haven’t written code for the reset button. Answer You ha…
I am getting a 404 error when attempting to load a background-image from CSS. Unsure how to proceed
I have searched through several posts regarding this same issue but none seem to resolve my problem. I am getting this 404 error in my console: index.css:1 GET http://localhost:5500/assets/css/assets/css/Battleship-Wallpaper.jpeg 404 (Not Found) I have the image saved in .jpeg format inside of my CSS folder. …
How do I get the index of two variables, compare them, and return true or false
I am making a trivia game that uses an array of objects. I think the correct way is to get the index of the correct answer by using .find, getting the the index of the selected answer, then use an if statement to compare the two. If they match then the console will log “correct” or “incorrec…
Implement the function endangeredSpecies that returns how endangered a species is on a particular continent
An HTML div element contains lists of endangered species grouped by continent and the species population status. Implement the function endangeredSpecies that returns how endangered a species is on a particular continent. For example, endangeredSpecies(‘North America’, ‘American bison’…
Button changing newest div item instead of the correct
I created a div table of sorts, where there is a button, and that button creates a box, and what is supposed to happen is that you can click any of the {x} boxes and it colors it black However, instead of coloring that box black(or white), it colors the newest one black(or white). How do I change this? HTML:
The number of people cannot be initialized in the word chain game
This is a word chain game I made. When the game is over, the text is initialized. Other texts are initialized fine, but the text in span.number-of-people is not. In the console window console.log(numberOfPeople.textContent); It looks like it has been initialized. But why is the number not erased from the scre…
Grid display separates when viewed fullscreen
I’m having trouble understanding whats going on with a grid I created. I made some code for a grid via javascript that changes the cell color when the mousepointer passes over it, however whenever I view this grid in a fullscreen window the view of the grid changes to four separate columns. This only ha…
How to Fade In and Insert Element then Fade Out and Remove Element?
Description I have a <button> that, when clicked once, sets the class of a <div> element to “fade-in” and inserts the <div> element in the DOM. This visually fades in the <div> element after insertion into the DOM. When the button is clicked again, the button sets the class…
Make first letter of TEXT INPUT uppercase [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 months ago. Improve this question Im new to JS but I think the post title does its job. From what i saw by googling this prob…