body { background-color: #000; color: #fafafa; font-family: Arial, Helvetica, sans-serif; } .mySlides { width: 100%; height: 100%; position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .img { margin: auto; position: absolute; object-fit: contain; width:100%; height:100%; top: 0; right: 0; bottom: 0; left: 0; } /* Disable scrolling */ html, body {margin: 0; height: 100%; overflow: hidden}