3

in css, to match multiple attributes you can use:

selector[attr1][attr2]{
    code goes here
}

is there any way to have css match attributes using boolean logic? for example:

selector[attr1]OR[attr2]{
    code goes here
}

would apply to any instance of that selector that has attr1, attr2, or both!

does this exist? If so, what is the syntax?

1 Answer 1

6

Use

selector[attr1], selector[attr2]{
code goes here
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.