-2
HTML
<div id="main-container">
<form id="register-form" action="">
<div class="half-box">
<input type="text" name="cc" id="cc" placeholder="Numero do cartao">
</div>
<div class="half-box1">
<input type="text" name="mes" id="mes" placeholder="MM">
</div>
<div class="half-box2">
<input type="text" name="ano" id="ano" placeholder="AAAA">
</div>
</div>
</form>
</div>
CSS
input, label {
display: block;
outline: none;
width: 100%;
border: none;
}
#main-container {
width: 1100px;
margin-left: 120px;
padding: 25px;
margin-bottom: 40px;
margin-top: 40px;
}
form {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.half-box {
flex: 1 1 20%;
position: relative;
margin-right:800px;
float:left;
}
.half-box1 {
flex: 1 1 0%;
position: relative;
padding-right:250px;
}
.half-box2 {
flex: 1 1 20%;
position: relative;
}
.spacing {
margin-right: 15.0%;
}
label {
font-weight: bold;
font-size: .8rem;
}
input {
border-bottom: 2px solid #898989;
padding: 17px;
font-size: 18px;
margin-bottom: 40px;
}
I can’t solve input code on the same line and separately to make it equal to the image below. You can help me, thank you.