As the title suggests, I want my date field to have the same padding etc as my text field.
How can I do this?
How can I do this?
Hey there,As the title suggests, I want my date field to have the same padding etc as my text field.
How can I do this?
#dob {
padding: 10px;
}
Yeah that looks okay, but doesn't work on iphone...Hey there,
On my phone so might not be able to provide the best answer. But in your CSS you can specify the selector as your ID value in your HTML.
For example:
CSS:#dob { padding: 10px; }
How so?Yeah that looks okay, but doesn't work on iphone...
It's as wide as the day,month, year inputs require. Everything else is the width of the screen with padding.How so?
Hmm, try this:It's as wide as the day,month, year inputs require. Everything else is the width of the screen with padding.
input[type="text"],
input[type="date"] {
padding: 1rem;
outline: none;
border: solid 1px #000;
}