Home > DeveloperSection > Forums > CSS for multiple attributes?
Goti Bandu

Total Post:119

Points:835
Posted on    March-11-2013 3:25 AM

 CSS-CSS3 CSS-CSS3 
Ratings:


 1 Reply(s)
 1058  View(s)
Rate this:

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!



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    March-11-2013 8:40 AM

Hi Goti Bandu!

which property is comman for selectors, you can put as below

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

Don't want to miss updates? Please click the below button!

Follow MindStick