.svgtopng-file-drop-container { position: relative; } .svgtopng-file-drop-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } input[type=file] { opacity: 0; cursor: pointer; }