views:

40

answers:

1

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?

+6  A: 

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.

David Hedlund
in jQuery you can do `:input` but this question wasn't about jQuery so this comment is pointless! :D
Mark
Thanks kindly, to the both of you. I suspected as much, but figured I'd check anyway.
PolishedTurd
Hey while we're at it, I couldn't figure out a way to change the background-color of the checkboxes, even before I asked this question. Any ideas?
PolishedTurd