Put the input under label
P粉311423594
P粉311423594 2023-09-15 10:23:17
0
1
391

I've been trying for days but I can't do this, how do I achieve this? I don't understand, how to put two labels (fname lname) on the same line and put the corresponding input below them? This is a sketch of what I want to do

I know this is a simple task for you all but I keep at it and I can do it but they end up on different lines or I only complete the first task but The label on the second task disappeared

P粉311423594
P粉311423594

reply all(1)
P粉111641966

Here you go, no flex/grid required:

label {
  display: inline-block;
}

input {
  display: block
}
<label>
  First Name
  <input/>
</label>
<label>
  Last Name
  <input/>
</label>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!