I am facing a challenge in arranging my input fields within the form in a column of 3. The issue is that I have more code than anticipated, making it difficult to achieve this layout. Despite several attempts, nothing seems to be working. I have spent hours trying to resolve this but with no success. Any assistance would be greatly appreciated. Thank you in advance.
.form-control {
position: relative;
padding-bottom: 20px;
}
.input-fields {
display: flex;
flex-direction: column;
margin-right: 4%;
width: 100%;
}
.input-fields .input,
.kompetanse textarea {
margin: 10px 0;
background: transparent;
border: 0;
font-family: inherit;
border-bottom: 2px solid #fff;
padding: 10px;
color: #fff;
font-size: 20px;
}
.input-fields .input {
width: 32%;
float: left;
}
.kompetanse textarea {
height: 150px;
width: 100%;
}
<div class="cv-form">
<form name="cv" id="cv" autocomplete="off" class="input-fields">
<h1 class="h1-venstre">Curriculum Vitae</h1>
<div class="form-control">
<input id="navn" type="text" class="input" placeholder="Navn" value=''><small>Feilmelding</small>
</div>
<div class="form-control">
<input id="adresse" type="text" class="input" placeholder="Adresse" value=''><small>Feilmelding</small>
</div>
<div class="form-control">
<input id="epost" type="text" class="input" placeholder="E-post" value=''><small>Feilmelding</small>
</div>
<div class="form-control">
<input id="mobil" type="text" class="input" placeholder="Mobil" value=''><small>Feilmelding</small>
</div>
<div class="form-control">
<input id="status" type="text" class="input" placeholder="Sivil status" value=''><small>Feilmelding</small>
</div>
<div class="form-control"><input id="født" type="text" class="input" placeholder="Fødselsdato" value=''><small>Feilmelding</small></div>
<div class="form-control">
<input id="utdanning" type="text" class="input" placeholder="Utdanning" value=''></div>
<div class="form-control"><input id="yrkeserfaring" type="text" class="input" placeholder="Yrkeserfaring" value=''>
<small>Feilmelding</small>
</div>
<div class="form-control">
<input id="kurs" type="text" class="input" placeholder="Kurs/etterutdannelse" value=''><small>Feilmelding</small>
</div>
<div class="form-control">
<input id="annet" type="text" class="input" placeholder="Andre opplysninger" value=''><small>Feilmelding</small>
</div>
<div class="kompetanse">
<textarea id="kompetanse" placeholder="Kompetanse" value=''></textarea>
</div>
<button type="submit" onclick="printetekst();" id="openBtn" class="custom">Send inn cv</button>
</form>