.wrapper { height: 400px; border: 1px solid #2196F3; } .element { background: orange; width: 200px; height: 100px; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); }