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

Asked

Viewed 45 times

3

I was taking a look at the selectors, and I couldn’t find a way to select all the elements that have a certain class. I tried for example:

select[form-control] {


}

Trying to catch all the selects with class .form-control of , but it didn’t work. Is it possible? How?

1 answer

4


I imagine that’s what you mean:

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

The css class selector is the point .

The element specified above is optional, could be only .form-control

Browser other questions tagged

You are not signed in. Login or sign up in order to post.