Topics: 15 | Posts: 14 | Comments: 12 | Members: 233
If you work with web forms on a regular basis or has done so at one time then you may have encountered the problem of all your form elements (text,checkbox,textarea etc.) obtaining the same styles when using the input {} selector for styling your form.
Well here is a very basic solution which would allow you to style each type of element individually based on the type="" attribute that you use on your forms.
For example, if we were to apply a specific style to all text boxes, we will use the following snippet in our style sheet.
input[type="text"] {
}
input[type="text"] {
height: 32px;
}
input[type="select"] {
height: 48px;
}