views:

71

answers:

4

Hi,

i'm trying to give the same width to the text and password inputs.

So i write this:

input[type="text","password"]{

    width: 138px;

}

But it doesn't work.

Any help?

Regards

Javi

+8  A: 

How about:

input[type="text"], input[type="password"]
{
    width: 138px;
}

or you use classes/ids:

input.text, input.password
{
    width: 138px;
}
faileN
+2  A: 
input[type="text"], input[type="password"]
Sjoerd
+3  A: 

How about?

input[type="text"],
input[type="password"]{
  width: 138px;
}
Michał Pękała
+1  A: 

Please refer to the Attribute selectors in W3C Specification. The selector does not have any formats that support multi-value. To solve the problem, you may follow faileN's answer.

Cary Chow