CSS: specify the same width for entering text and password

I am trying to give the same width for entering text and password.

So, I am writing this:

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

    width: 138px;

}

But that will not work.

Any help?

Hi

Xavi

+5
source share
4 answers

What about:

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

or you use classes / identifiers:

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

What about?

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

W3C. , . , faileN.

+1

All Articles