<div class="otp-page-wrapper">
<div class="btn-back"></div>
<div class="otp-content-wrapper">
Please enter the 6-digit code sent to you at <span class="mobile-number">9845498454</span>. <span class="mobile-number-confirmation">Did you enter the correct mobile number?</span>
</div>
<form class="otp" autocomplete="off" novalidate>
<fieldset>
<input maxlength="1"/>
<input maxlength="1"/>
<input maxlength="1"/>
<input maxlength="1"/>
<input maxlength="1"/>
<input maxlength="1"/>
</fieldset>
</form>
<a class="havent-received">I haven't received a code</a>
<div class="fixed-action-btn toolbar">
<a class="btn-floating btn-small red">
<i class="large material-icons">mode_edit</i>
</a>
</div>
</div>
* {
box-sizing: border-box;
}
body,html {
margin: 0;
padding: 0;
font-size: 16px;
}
.btn-back {
position: absolute;
width: 40px;
height: 40px;
border-radius: 50%;
top: 10px;
left: 10px;
background-color: rgba(120,120,120,1);
}
.otp fieldset, .otp input {
border: none;
float: left;
}
form {
display: flex;
justify-content: center;
}
.otp fieldset {
display: block;
}
fieldset input {
width: 30px;
height: 30px;
align-items: center;
justify-content: center;
float: left;
border: none;
margin-right: 20px;
text-align: center;
border-bottom: 1px solid black!important;
}
fieldset input:focus {
border: 1px solid rgba(150,150,150,1);
}
.otp-page-wrapper {
display:flex;
justify-content: space-between;
flex-flow: column;
height: 100vh;
padding: 20px;
}
.otp-content-wrapper {
font-size: 1.1rem;
margin-top: 50px;
}
.mobile-number-confirmation {
color: orange;
font-size: .9rem;
}
.havent-received {
color: blue;
cursor: pointer;
}
.fixed-action-btn {
position: fixed;
right: 23px;
bottom: 23px;
padding-top: 15px;
margin-bottom: 0;
z-index: 997;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.