.el1{ box-shadow: 0 0 0 10px #000; } .el2{ transform: translate(); box-shadow: 0 0 0 10px; }
Element 1
Element 2