.embed-container { position: relative; padding-bottom: 120%; height: 50%; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: -5%; left: 0; width: 100%; height: 100%; }