#maze{
position: absolute;
top: 25%;
right: 1%;
width: 730px;
background-image: url("maze.jpg");} //CSS styles for maze.
var maze = document.getElementById('maze'); //JavaScript code to get element with ID 'maze'.
<div id = "maze"></div> //HTML code to create a div element with ID 'maze'.
I am facing an issue using document.getElementById to display images.
Even though I have added
background-image: url("maze.jpg");
in the CSS, the image is not showing up. Can someone assist me in troubleshooting this problem?
Your help would be greatly appreciated!