I have these css for my form but it lack of css for drop down list/select. I need same format as below:
CSS:
form input[type="password"], form input[type="text"] {
display: block;
width: 94%;
margin: 5px 0;
padding: 8px;
color: #777;
font-family: Arial;
font-size: 13px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #ADADAD;
outline: none;
}
form textarea {
display: block;
width: 94%;
margin: 5px 0;
padding: 8px;
color: #777;
font-family: Arial;
font-size: 13px;
overflow: auto;
resize: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #ADADAD;
outline: none;
}
You should use CSS class names for inputs based on their type. For instance, text input should have a CSS class name “TextBox” and check input should have a CSS class name “CheckBox” and you can set all the css attributes separately. Also you can set multiple CSS class names on a single element like
"Control TextBox Disabled","Control CheckBox", or"Control Label Red-Text".Also you can use JQuery selector and find any kind of input and do whatever you want.
I hope this helps:
HTML sample code:
Selecting elements using JQuery:
Cheers