0

new to coding so appreciate this might be a naïve question.

I want to have two forms, one off-centre left and off-centre right, the input fields should align, even though the input name's are different lengths. How do I align the input fields?

Here is a copy of my HTML (I don't have CSS code for this section yet):

<form action="Game1.html" class="class-for-EvertonForm"></form>
<div>
  <label for="GK">GK:</label>
  <input type="text" name="GK" id="GK">
  <input type="Submit" value="Submit">
</div>
<div>
  <label for="RB">RB:</label>
  <input type="text" name="RB" id="RB">
  <input type="Submit" value="Submit">
</div>
<div>
  <label for="RCB">RCB:</label>
  <input type="text" name="RCB" id="RCB">
  <input type="Submit" value="Submit">
</div>

Form input fields to align

mplungjan
  • 169,008
  • 28
  • 173
  • 236

0 Answers0