<style> div{ width: 400px; height: 100px; background: url('./Snipaste_2023-05-30_09-54-48.png') no-repeat left center; position: relative; background-color: #fff } span { position: absolute; right: 0; top: 0; height: 100px; width: 20%; } </style> </head> <body> <div> <span></span> </div> </body>