.shelf { display: block; z-index: 9; content: url("https://i.imgur.com/1QepZRl.png"); position: relative; width: 941px; height: 175px; margin-left: auto; margin-right: auto; } .stuffonshelf { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 10; margin-bottom: -80px; /* This is what actually puts the stuff ON the shelf instead of hovering above it */ width: 770px; margin-left: auto; margin-right: auto; } .example { /* Of course, you can delete this */ width: 200px; height: 200px; padding: 5px; background-color: magenta; } .example2 { /* Of course, you can delete this */ width: 200px; height: 300px; padding: 5px; background-color: magenta; }
heehee
hoohoo
haha

bada bing
bada boom
fuggedabaoutit

bada bing
fuggedabaoutit