Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS styling input [type="??"] for select lists [duplicate]

Possible Duplicate:
CSS Select Selector

What is the CSS equivalent to the following when dealing with select lists?

input[type="text"]
input[type="submit"]
like image 586
Nick Avatar asked Mar 28 '12 09:03

Nick


1 Answers

The input[type="text"] CSS selector can be broken down into;

  1. input; find all elements that are input elements.
  2. [type="text"]; filter those elements by those which have the type attribute of text.

Because a select box is a <select> element rather than a <input type="select" />, you can just use the select selector as follows;

select {
    /* blah blah blah*/
} 
like image 194
Matt Avatar answered Oct 05 '22 15:10

Matt