Styling Input Fields
Use the width
property to determine the width of the input field:
Example
input {
width: 100%;
}
The example above applies to all <input> elements. If you only want to style a specific input type, you can use attribute selectors:
input[type=text]
– will only select text fieldsinput[type=password]
– will only select password fieldsinput[type=number]
– will only select number fields- etc..