I have been unable to give spacing betweenb the column of texts and input fields in a form. I want my web page to look likle my design in the first image but i got the second image below that as my result.
tell me how do i fix this so that therte is spacing between the columns of text and input fields like my design in the first image?
This is my current code
<div style="display:flex">
<div id="application-image-intro">
<img id="application-image-1"
src="file:///C:/xampp/htdocs/templatemo_591_villa_agency/assets/images/lady-sitting-table-near- laptop-smartphone.jpg"
alt="lady-sitting-table-near-laptop-smartphone">
</div>
<div class="application-start" style="display: flex;">
<h1><h1 style="font-family: arial; color:#56aeff;">Register to start</h1>
<h2>Already registered? login here</h2>
<div class="application-form">
<form action="submit.php" method="post"><label class="apply-name" for="name">Full Name</label>
<input type="text" id="fullname" name="fullname" required><br>
<label class="apply-email" for="email">Your email</label>
<input type="text" id="lastName" name="lastName" required><br>
<label class="apply-country" for="country of residence"> Country of residence</label>
<input type="text" id="lastName" name="lastName" required><br>
<label class="apply-birth" for="date of birth"> Date of birth</label>
<input type="text" id="lastName" name="lastName" required><br>
</form>
</div>
</div>
</div>
</div>
</body>
this is my codepen work on the design
https://codepen.io/Samuel-Christian-the-looper/pen/oNRpaBm
I have tried giving each input fields a tag to be modified on the css but it dpes not work even when i give each of the specified input fields a margin-bottom attribute in the css.
2
Answers
Well all I did was add
<br>
after all of your form labels in HTML.Then I just styled your labels and input fields a little bit by doing this:
Heres what it looks like (I only included the relevant html)
maybe this ?
(with a minimal amount of coding…)