#epub-cover-image-container { text-align: center; height: 100%; } #epub-cover-image-container img { text-align: center; max-height: 100%; } #epub-cover-image-container img { text-align: center; max-height: none; }