Image appear on top of another

I am trying to get one image to appear on top of the other after I drag and drop it. I cannot seem to get it to work.

I am a teacher and just learning code to build activities so please be patient!

I’m using Dreamweaver if that makes a difference.

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://www.freecodecamp.org/learn.

With your current questions, we don’t have enough context to know what you already know or don’t know.

It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile:

<img src="../Images/Homepage/V Box.png"  Id="vbox" width="auto" height="150" alt="V" draggable="true" class="draggable"
	 ondragstart="onDragStart(event);"/> 	

I posted the script

This is the only thing that I got to work. I have made different

to try to help but it still doesn’t let the dropped image appear on top. I have tried all the google searches for different ways to have the image appear on top but I must be missing something and I figure it is pretty simple. The image css is
 .box {
	position: relative;
	text-align: center;
	color: white;
	width: auto;
	min-width: 100px;
	min-height: 100px;
	padding: 0;
	border: 0;
}

I think I need it to change to absolute after it is dropped but I cannot get anything to work to change the position.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

The position of one element results from an interaction of all the surrounding elements and parent elements. That’s why an answer that you find online might not have the same effect on your code.

When you say “on top of” do you mean higher on the y axis (vertically), or do you mean the z axis (coming out of the screen)?

Z-
I am going through all the lessons but I have taken a lot of html and CSS stuff. This site has more than any so far but I am crunched for time. I hate to but I am thinking about skipping a few lessons and returning to them later? Will this make me even more confused?

Sure. You can always jump around looking for what is most relevant to you.