Is it possible to select all elements with a certain class with CSS only?

3

I was checking the selectors, and I could not find a way to select all elements that have a certain class. I tried for example:

select[form-control] {


}

Trying to get all selects with class .form-control of , but it did not work. It's possible? How?

    
asked by anonymous 09.01.2016 / 00:02

1 answer

4

I imagine that's what it means:

 select.form-control{
    /* seu style */
 }

The css class selector is the .

The previously specified element is optional, could be just .form-control

    
09.01.2016 / 00:04