apply css style for specific input types

by Ramya 2013-10-22 19:13:15

set css style for specific input types:

in some situations, we need to set style for specific input types(like text box, submit, button,file,etc,.) instead of applying in all input types.

for that, you can apply style for specify types as,

input[type=text]{
color: green;
}


you can also use "not" to check if the input type is not like as,

input:not([type=button]){
border: 1px solid #f0f0f0;
}
487
like
0
dislike
0
mail
flag

You must LOGIN to add comments