forum

Home / DeveloperSection / Forums / CSS for multiple attributes?

CSS for multiple attributes?

Anonymous User199411-Mar-2013

Hi Everyone!

I'm trying to consolidate the following:

input[type="text"] {
    width: 300px;
}
input[type="password"] {
    width: 300px;
}
Into something like this:

input[type="text"][type="password"] {
    width: 300px;
}
I tried this, type="text", "password", and a few other things.

Thanks in advance!


Updated on 11-Mar-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By