tirenweb
tirenweb

Reputation: 31709

CSS: give the same width to the text and password inputs

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

Upvotes: 5

Views: 3740

Answers (3)

Michał Pękała
Michał Pękała

Reputation: 2389

How about?

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

Upvotes: 3

Sjoerd
Sjoerd

Reputation: 75588

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

Upvotes: 2

Fidi
Fidi

Reputation: 5834

How about:

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

or you use classes/ids:

input.text, input.password
{
    width: 138px;
}

Upvotes: 16

Related Questions