How to use "and" in CSS3 selectors?

9

I'm trying to select only inputs whose class starts with "btn_" and also has type="button" .

Example:

input[type="button"] **&&** [class^="btn_"]

Is it possible to do this?

    
asked by anonymous 21.10.2014 / 21:24

1 answer

10

Yes it is possible, just put the two conditions together.

input[type="button"][class^="btn_"] {
    height: 200px;
}

Example: link

    
21.10.2014 / 21:33