---
title: "CSS for multiple attributes?"  
description: "CSS for multiple attributes?"  
author: "Anonymous User"  
published: 2013-03-11  
updated: 2013-03-11  
canonical: https://www.mindstick.com/forum/645/css-for-multiple-attributes  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# CSS for multiple attributes?

Hi Everyone!

I'm [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to consolidate the following:

[input](https://www.mindstick.com/forum/159209/how-can-i-read-convert-an-input-stream-into-a-string-in-java)[type="[text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions)"] {\
width: 300px;\
}\
input[type="[password](https://www.mindstick.com/blog/118/retriving-user-password-by-using-stored-procedure-in-asp-dot-net)"] {\
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](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by AVADHESH PATEL

Hi Goti Bandu!\
which property is comman for selectors, you can put as below\
input[type="text"],input[type="password"] { width: 300px;}


---

Original Source: https://www.mindstick.com/forum/645/css-for-multiple-attributes

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
