<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <div style="overflow:hidden; border-radius:25px; border:3px solid #f00; padding:1px; height:180px;"> <div style="height:100px; width:100px; transform:perspective(1px); background-color:lime"></div> <div style="height:100px; width: 50px; background-color:red; position:relative; top: -20px;"></div> </div> <div </body> </html>