body{ background-color:#000; } .videoBox{ max-width: 600px; position: absolute; left:50%; top:50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); } .warning{ color:#FFF; }