Users Pricing

forum

Home Forums CSS for multiple attributes? – MindStick

CSS for multiple attributes?

Anonymous User 2319 11 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!


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md