I'm currently working on a form that includes multiple input boxes placed in the same row.
My goal is to set up the email input to occupy one line, while the date, time, and number inputs should be on another line. However, I am facing difficulty in making sure that the date/time/number inputs span exactly 100% of the width of the form.
The percentages specified in the CSS file at the moment are just approximate values, causing the number box's edge not to align vertically with the email input box.
input[type=email] {
width: 100%;
}
input[type=date] {
width: 22%;
margin-right: 15px;
}
input[type=time] {
margin-right: 15px;
}
input[type=number] {
width: 11.4%
}
<form>
Email: <input type="email"><br>
Date: <input type="date">
Time: <input type="time">
Number in Party: <input type="number">
</form>