asfsadf
asfsadf

Reputation: 3862

All-inclusive CSS selector for input elements

Looking for a way to apply a background-color to all input elements, including dropdown lists, textareas, and even checkboxes.

Is there an all-inclusive selector for this sort of thing, or would I need to list them all individually in the selector?

Upvotes: 7

Views: 6307

Answers (1)

David Hedlund
David Hedlund

Reputation: 129792

Most of them are covered in input, so all you need to add is the two others:

input, textarea, select { }

But no, there's nothing more all-inclusive than that.

Upvotes: 13

Related Questions