JSFiddle - React, Tailwind, and code Playground

by Tony Realovich

HTML

<div class="red">
    <img src="http://yoursmileys.ru/ismile/globe/globe14.png">
</div>
    
<div class="green">
    Задача: сделать чтобы этот зеленый блок был под картинкой, но над красным блоком, не удаляя свойство -webkit-transform у блока ".red".
</div>

CSS

.red {
  -webkit-transform: translate3D(10px, 10px, 0);
  height: 300px;
  background-color: red;
  position: relative;
}

.green {
    position: relative;
    margin-top: -100px;
    padding: 20px;
    background: green;
    color: #fff;
    z-index: 2;
}

img {
    position: absolute;
    z-index: 3;
}