108k views
1 vote
How do I overlap images in HTML. I am building a web page and I need one image to lay over the other. How do I do this?

1 Answer

4 votes
Change the z-index property in CSS; the higher the z-index, the more on-top it will be.

<style>
.top-image {
z-index: 3;
}

.bottom-image {
z-index: 2;
}
</style>
User Simbian
by
6.6k points