I am working on a form that sends input to a PHP script. I want to reorganize the form so that the second section (Person 2) appears in a column to the right of the first section (Person 1), instead of below it.
<link rel="stylesheet" href="test.css">
<form class="form-validation" method="post" action="script.php">
<link rel="stylesheet" href="test.css">
<h2>Person 1:</h2>
<br>
<div class="form-row form-input-name-row">
<label>
<span>Name</span>
<input name="field1" type="text">
</label>
</div>
<div class="form-row form-input-name-row">
<label>
<span>Age</span>
<input name="field2" type="text">
</label>
</div>
<div class="main-content">
<h2>Person 2:</h2>
<br>
<div class="form-row form-input-name-row">
<label>
<span>Name</span>
<input name="field3" type="text">
</label>
</div>
<div class="form-row form-input-name-row">
<label>
<span>Age</span>
<input name="field4" type="text">
</label>
</div>
</form>
<div>
<button name="submit">Submit form</button>
</div>
</div>