We can then wrap the rectangle inside another rectangle that would hide the inner rectangle using overflow: hidden to get our solution.