.input{ width: 20rem; } .button{ margin-top: 5px; } .input-out{ position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; background-color: transparent; font-size: 1rem; font-weight: normal; } .inputout-email{ z-index: 1; }